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

Publicado em: 01 Janeiro 1970
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line How to scrape data from an iframe | Web Scraping with Python & Scrapy duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python 360 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,761 vezes e gostou 56 espectadores. Boa visualização!