python-scraping icon indicating copy to clipboard operation
python-scraping copied to clipboard

Code samples from the book Web Scraping with Python http://shop.oreilly.com/product/0636920034391.do

Results 87 python-scraping issues
Sort by recently updated
recently updated
newest added

line 25: `body = bs.find('div', {'class', 'post-body'}).text` A Parameter named 'attrs' should be dic type, but the example code and the book has wrong codes. I recommed change the code...

Hello Everyone, I am getting error with following code ``` import requests files = {'uploadFile': open('python.png', 'rb')} r = requests.post('http://pythonscraping.com/pages/processing2.php', files=files) print(r.text) ``` Respondes is **Sorry, there was an error...

for what to write "as e" in string № 95 and № 100? - "except AttributeError as e:" - "except AttributeError as e:" P.S. what a function by name 'getSiteHTML"...

…e robust. I changed the html parser to html5lib, since I noticed html.parser was having quite some difficulty parsing certain articles. I also updated some CSS selectors for reuters.com and...

Can someone help me fix the syntax issue below? ![SyntaxError_GitHub](https://user-images.githubusercontent.com/26257179/72208525-9e4cbf00-3471-11ea-80e6-e473f2d162da.png)

Use defaultdict to buildWordDict.

Can't view any files. Just get a "Sorry, something went wrong. Reload?" message.

Updated import lines from file articles.py