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 hashes)

Uploaded Python 3

Supported by

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