简体   繁体   中英

Scraping advertisements from a web page using python

How can I scrape ads (eg Banners) from a dynamically loaded web page - like AdblockPlus - using Python?

I want to exclude ads from a web page to filter it.

You can use BeautifulSoup to scrape webpage.

You need to install the package and just import it

Like this from bs4 import BeautifulSoup

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM