Skip to content

Web Scraping tool to extract required phrases from static webpages in conjunction with BeautifulSoup library.

License

Notifications You must be signed in to change notification settings

mondalbidisha/python-web-scraper-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Python Web Scraping Tool

Example Usage

Example usage to fetch all phrases from a stackoverflow page:

from web_scraper import WebScraper

url = 'https://stackoverflow.com/questions/78490118/eslint-for-empty-statements'

# We can add single or multiple phrases here.
# We can add urls here.
required_phrases_list = ["no-unused-expressions"]

webscraper = WebScraper()
result = webscraper.build(url, required_phrases_list)
print(result)

Here's the output:

[
    'no-unused-expressions', 
    '@typescript-eslint/no-unused-expressions', 
    'demo in TypeScript ESLint playground'
]

About

Web Scraping tool to extract required phrases from static webpages in conjunction with BeautifulSoup library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages