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.5-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parseify-0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4b76b4faa85b78bbbe71f5ebbf84a4af09b78b34dcb7329973d993504279f539
MD5 1a1047f1b2978566fd13b4838b5aff75
BLAKE2b-256 693721bcc05ccac9b426d0445ffafc394406e0214d518d44c901f655ad7e31c1

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