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

Published: 01 January 1970
on channel: 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


Watch video How to scrape data from an iframe | Web Scraping with Python & Scrapy online, duration hours minute second in high quality that is uploaded to the channel Python 360 01 January 1970. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,761 times and liked it 56 visitors.