# 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()
-
Notifications
You must be signed in to change notification settings - Fork 0
basedygt/scraper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Python Script to scrape various search engines
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published