Skip to content

Python Script to scrape various search engines

Notifications You must be signed in to change notification settings

basedygt/scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

DuckDuckGo

# Import the scraper class
from engines import DuckDuckGoScraper

# Create an instance of the scraper
scraper = DuckDuckGoScraper(browser="Firefox", timeout=10)

# Perform a search
query = "python programming"
pages = 2  # Number of pages to scrape
scraper.perform_search(query, pages)

# Extract links from the search results
links = scraper.extract_links()
print("Extracted Links:")
for link in links:
    print(link)

# Close the scraper
scraper.close()

About

Python Script to scrape various search engines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages