python-scraping
python-scraping copied to clipboard
Code samples from the book Web Scraping with Python http://shop.oreilly.com/product/0636920034391.do
Deprecation removals Compatibility shims for pre-1.0 Scrapy module names are removed (issue 3318): scrapy.contrib (with all submodules) scrapy.contrib_exp (with all submodules)
the 'allow' argument of LinkExtractor is supposed to be an absolute link not a relative one.
Bug in strptime
from urllib.request import urlopen from bs4 import BeautifulSoup html=urlopen("http://www.pythonscraping.com/pages/warandpeace.html") bs=BeautifulSoup(html,"html.parser") nameList = bs.find_all(text='the prince') print(len(nameList)) I run the code above and the result is 7. However, when I use 'ctrl+F'...
python --version: 3.7.0 chapter5/2-createCsv.py  Hello, I write the code according to the content on github, and even copy and paste the code directly afterwards, so that I can control...