Package: quickscraper-sdk
quickscraper-sdk-pythonRegister For Free https://www.quickscraper.coInstallationpipinstallquickscraper-sdkGet Free Access (Free Forever)Register yourself herehttps://app.quickscraper.co/auth/registerExamplesBasic Usagefromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip')print(response._content)Write a HTML to Filefromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')quickscraper_client.writeHtmlToFile('http://httpbin.org/ip',file_path='filename.html')Rendering Javascriptfromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip',render=True)print(response._content)Custom Headersfromquickscraper_sdkimportQuickScraperquickscraper_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 Locationfromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip',country_code='US')print(response._content)Premium Residential/Mobile Proxy Poolsfromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip',premium=True)print(response._content)Device Typefromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip',device_type='mobile')print(response._content)Account Informationfromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')usage=quickscraper_client.account()print(usage)Parser Addonfromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip',parserSubscriptionId='PARSER_SUBSCRIPTION_ID')print(response._content)Webhook Addonfromquickscraper_sdkimportQuickScraperquickscraper_client=QuickScraper('YOUR_ACCESS_TOKEN')response=quickscraper_client.getHtml('http://httpbin.org/ip',webhookRequestId='WEBHOOK_ID')print(response._content)Get JSON from datafromquickscraper_sdkimportQuickScraperquickscraper_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 datafromquickscraper_sdkimportQuickScraperquickscraper_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 Parserfromquickscraper_sdkimportQuickScraperquickscraper_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 Featurefromquickscraper_sdkimportQuickScraperquickscraper_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 millisecondsprint(response._content)Do you need an expert?Are you finding a developer for your world-class product? If yes, please contact here.
Originally byQuickScraper Developers - app@quickscraper.co.