Skip to main content

A package for scraping search results from Yahoo Search.

Project description

SocialCrawler

SocialCrawler is a Python package designed to scrape search results from Yahoo Search for specific domains. It utilizes requests and BeautifulSoup to extract search results from Yahoo Search pages.

Installation

You can install SocialCrawler via pip:

pip install socialCrawler

Usage

from socialCrawler import search

# Define your search query
query = "python tutorials"

# Define the list of domains to search within
domains = ["stackoverflow", "instagram"]

# Define the number of search results to retrieve per domain
num_results = 5

# Perform the search
results = search(query, domains, num_results)

# Print the search results
for result in results:
    print(result)

Functions

search(query, domains, num_results=1, proxies=None)

Search for the specified query in the specified domains and retrieve search results.

  • query (str): The search query.
  • domains (list): List of domains to search within.
  • num_results (int): Number of search results to retrieve per domain. Default is 1.
  • proxies (list): List of dictionaries containing proxy information. Default is None.

Returns:

  • list: A list of dictionaries containing search results.

scrape(url, proxy, domain)

Scrape search results from the specified URL for a given domain.

  • url (str): The URL to scrape.
  • proxy (dict): Dictionary containing proxy information.
  • domain (str): The domain for which to scrape search results.

Returns:

  • list: A list of dictionaries containing scraped search results.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yahooproject-0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

YahooProject-0.2-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file yahooproject-0.2.tar.gz.

File metadata

  • Download URL: yahooproject-0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for yahooproject-0.2.tar.gz
Algorithm Hash digest
SHA256 3e33a27ca5d9e85a94727a1ba709cf9a41e4a171c350ee0b6a46e8b9498b9780
MD5 0cd39df87b2cb39e8e826e79d4cd6137
BLAKE2b-256 8393727397d807327790ae35f2c814f22b51649b07466d2253eeba8fd4b09b32

See more details on using hashes here.

File details

Details for the file YahooProject-0.2-py3-none-any.whl.

File metadata

  • Download URL: YahooProject-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for YahooProject-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9113ca8a7fff00e022cccdce21daace2b38cbd89b65d48f9555134c3d112bbc8
MD5 1e6519bd2f603c4919f9d81931cc2fa4
BLAKE2b-256 1eaf6fcf79a49877dec5327690ce5b9ee7f08467e2d377f4786d3bd76c7183cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page