Pytihon Mistakes | Web Scraping - Zip, Lists, List of Dictionaries & Pandas
Dr Pi
Some common mistakes and pitfalls if you are a Python beginner and you use the wrong approach. Scrape ROWS and not COLUMNS when you are getting the data from the target site.
š More videos to follow in this series so please subscribe and comment (cos algos!)
Don't zip lists when you can scrape rows and preserve the key:value pairing Convert a List of Dicts into a Pandas DataFrame
0:00 Intro
02:46 The Zip - List problem 05:56 Dictionary and enumerate 10:45 Pandas DF from a List of Dicts
Visit redandgreen blog for more Tutorials
š http://redandgreen.co.uk/about/blog/
Subscribe to the YouTube Channel
š https://www.youtube.com/c/DrPiCode
Follow on Twitter - to get notified of new videos
š https://twitter.com/RngWeb
š Become a patron š š https://www.patreon.com/drpi
Buy Dr Pi a coffee (or Tea) ā https://www.buymeacoffee.com/DrPi
Proxies
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?
You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! š
š 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49 ā¼ļø Coupon Code: DRPI10 (You can also get started with 1000 free API calls. No credit card required.)
Thumbs up yeah? (cos Algos..)
#webscrapingmistakes #tutorials #python ... https://www.youtube.com/watch?v=muBgiP436D0
68415106 Bytes