How to scrape data from an iframe | Web Scraping with Python & Scrapy

Publié le: 01 janvier 1970
sur la chaîne: Python 360
4,761
56

This is a minimalist Scrapy tutorial to help explain how to get the data from an iframe using Scrapy 2.5 and Python when web scraping sites with one or more iframes.

You can pass the data from the page with a callback and then parse the iframe

With the help of some nice xpath selectors you can be precise with the data you want to get from the iframe and process it in the same way as a 'normal' page.

Link to the code on GitHub :
======================
🌏 https://github.com/RGGH/iframes


Visit redandgreen blog for more Tutorials
=========================================
🌏 http://redandgreen.co.uk/about/blog/

Subscribe to the YouTube Channel
=================================
🌏    / drpicode  

Follow on Twitter - to get notified of new videos
=================================================
🌏   / rngweb  

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..)

#webscraping #tutorials #python


Sur cette page du site, vous pouvez voir la vidéo en ligne How to scrape data from an iframe | Web Scraping with Python & Scrapy durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Python 360 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,761 fois et il a aimé 56 téléspectateurs. Bon visionnage!