python-scraping
python-scraping copied to clipboard
Code samples from the book Web Scraping with Python http://shop.oreilly.com/product/0636920034391.do
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? 
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