AutoScraper - automatic Web scraping by example in 6 lines
Updated: Feb 18, 2021
AutoScraper - automatic Web scraping by example in 6 lines
See https://lnkd.in/ejgVb3F for more details. For example, first run
pip install autoscraper
Suppose a stackoverflow.com page has an article entitled "What are metaclasses in Python?"
To get all items like titles from that stackoverflow page run the following in Python 3:
from autoscraper import AutoScraper
url = 'https://lnkd.in/eXKuya2'
wanted = ["What are metaclasses in Python?"]
scraper = AutoScraper()
result = scraper.build(url, wanted)
print(result)
Please like and share this post if you enjoyed it using the buttons at the bottom!
Stay up to date. Subscribe to my posts https://morrislee1234.wixsite.com/website/contact
Web site with my other posts by category https://morrislee1234.wixsite.com/website
Comments