Skip to main content

https://quickscraper.co

Project description

quickscraper-sdk-python

Register For Free https://www.quickscraper.co

Installation

pip install quickscraper-sdk

Get Free Access (Free Forever)

Examples

Basic Usage

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip')
print(response._content)

Write a HTML to File

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
quickscraper_client.writeHtmlToFile(
    'http://httpbin.org/ip', file_path='filename.html')

Rendering Javascript

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip', render=True)
print(response._content)

Custom Headers

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml(
    'https://httpbin.org/headers', keep_headers=True, headers={'X-My-Custom-Header': 'QS-APP'})
print(response._content)

Geographic Location

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml(
    'http://httpbin.org/ip', country_code='US')
print(response._content)

Premium Residential/Mobile Proxy Pools

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip', premium=True)
print(response._content)

Device Type

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip', device_type='mobile')
print(response._content)

Account Information

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
usage = quickscraper_client.account()
print(usage)

Parser Addon

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip', parserSubscriptionId='PARSER_SUBSCRIPTION_ID')
print(response._content)

Webhook Addon

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip', webhookRequestId='WEBHOOK_ID')
print(response._content)

Get JSON from data

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getData('http://httpbin.org/ip', parserSubscriptionId='PARSER_SUBSCRIPTION_ID')
print(response._content)

Write CSV, EXCEL to file from data

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.writeHtmlToFile('http://httpbin.org/ip', file_path='YOUR_FILE_PATH', parserSubscriptionId='PARSER_SUBSCRIPTION_ID')
print(response._content)

Add Dynamic Inputs With Parser

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getData('http://httpbin.org/ip', parserSubscriptionId='PARSER_SUBSCRIPTION_ID', dynamicInputs= [ {'name': 'YOUR_INPUT_NAME', 'value': 'YOUR_INPUT_VALUE' } ])
print(response._content)

Scroll To Bottom Of the Page Feature

from quickscraper_sdk import QuickScraper
quickscraper_client = QuickScraper('YOUR_ACCESS_TOKEN')
response = quickscraper_client.getHtml('http://httpbin.org/ip', isScroll=True, scrollTimeout=1000) # 1000 Consider as milliseconds for scroll after 1000 milliseconds
print(response._content)

Do you need an expert?

Are you finding a developer for your world-class product? If yes, please contact here. Originally by QuickScraper Developers - app@quickscraper.co.

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.

quickscraper_sdk-1.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file quickscraper_sdk-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: quickscraper_sdk-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for quickscraper_sdk-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac199c69c3855c22f6407cd242eec88bc81454f38b0f0df7508ffc8758212146
MD5 a54c40ac26f0c4c71e87a7aa870a66a3
BLAKE2b-256 b3114a8b5678a5c0efa1862b1f78848ac6dc1424ad033ccf7e14d384f8e7b20d

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