Skip to main content

Get any information from any website you need.

Project description

Parseify

Get any information from any website you need.

Installation

pip install parseify

Usage

from parseify import OpenAIParser, RequestsScraper, ScraperAPIScraper, ScrapingBeeScraper, WebsiteAnalyzer

# Initialize the library

scraper = ScrapingBeeScraper(api_key="your-api-key-here")
parser = OpenAIParser(api_key="your-api-key-here")
analyzer = WebsiteAnalyzer(scraper_engine=scraper, parser_engine=parser)

# Define schema
schema = {
    "mission": "La mission de l'entreprise",
    "news": "Actualités de l'entreprise",
}

# Analyze a website
results = analyzer.analyze("https://mistral.ai/fr/", schema)
print(results)

Will return:

{
  "mission": "We lead the market of open source generative technologies to bring trust and transparency in the field and foster decentralised technology development.",
  "news": "Mistral is introducing new products and services including a free API, improved pricing for their services, and a moderation service for text content detection. They have also announced the Mistral Small and Pixtral Large models, aimed at AI builders.",
  "visited_links": [
    "https://mistral.ai/fr/",
    "https://mistral.ai/news"
  ],
  "logos": [],
  "favicon": "https://mistral.ai/images/favicon/apple-touch-icon.png"
}

Available scrapers

Currently, the library supports the following scrapers:

ScraperAPI

scraper = ScraperAPIScraper(api_key="", render=True)

ScrapingBee

scraper = ScrapingBeeScraper(api_key="", render=True)

Default HTTP request

scraper = RequestsScraper()

JS rendering (supported by ScraperAPI and ScrapingBee) is often recommended.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

parseify-0.6-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file parseify-0.6-py3-none-any.whl.

File metadata

  • Download URL: parseify-0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for parseify-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2708a4c9eea54c3abb9f7bfdde6560755cae4bc7506798f40b69eb2cae1edc9d
MD5 c4ef969b06cc57e7e8b14bc35c6113c7
BLAKE2b-256 13392bd6a0ccbf9f5dde45993bdd6b6c28d86a7db955095fe99e3919a2dc341f

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