Skip to main content

WebScrapingApi Python SDK

Project description

WebScrapingApi Python SDK

WebScrapingApi is an API that allows scraping websites while using rotating proxies to prevent bans. This SDK for Python makes the usage of the API easier to implement in any project you have.

Installation

Run the following command in the main folder of your project:

pip install webscrapingapi

API Key

To use the API and the SDK you will need a API Key. You can get one by registering at WebScrapingApi

Usage

Using the SDK it's quite easy. You can check out the code from example.py to make things more clear. An example of a GET call to the API is the following:

from webscrapingapi import WebScrapingApiClient

client = WebScrapingApiClient(api_key='YOUR_API_KEY')

response = client.get('https://webscrapingapi.com', params={
    'render_js': 0,
    'proxy_type': 'datacenter',
    'device': 'desktop',
}, headers={
    'authorization': 'bearer test'
})

For a better understanding of the parameters, please check out our documentation

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

webscrapingapi-1.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file webscrapingapi-1.0.tar.gz.

File metadata

  • Download URL: webscrapingapi-1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/2.7.18

File hashes

Hashes for webscrapingapi-1.0.tar.gz
Algorithm Hash digest
SHA256 145a4e6dab6e69b308ebb80cdc26a7884d10f22123a165393c996440a1b689c4
MD5 193ebe28655ec6cf19802c5fa6666d24
BLAKE2b-256 f3d7a6b77c20d2fd11a9f00fc584448d5247c7e461b9b7402316d8583a24233c

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