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

Опубликовано: 01 Январь 1970
на канале: 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


Смотрите видео How to scrape data from an iframe | Web Scraping with Python & Scrapy онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Python 360 01 Январь 1970. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 4,761 раз и оно понравилось 56 посетителям.