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

quickscraper_sdk-1.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for quickscraper_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 413d1ec546c800b778b214c6ec4cb06b4aa83251006704f4562b9c8999fa1c92
MD5 908510f698b271ce6618f0ff0bdfc632
BLAKE2b-256 c44712986fc7a6b0e8c26c8f3c3f04868ca7a9f8885c343a11b0405b6b6977c7

See more details on using hashes here.

Supported by

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