Skip to content

Instantly share code, notes, and snippets.

@whalehulk
Created May 31, 2017 09:47
Show Gist options
  • Save whalehulk/8a642f1058c5dda34dfbe2ec236a59e6 to your computer and use it in GitHub Desktop.
Save whalehulk/8a642f1058c5dda34dfbe2ec236a59e6 to your computer and use it in GitHub Desktop.
import cloudconvert
print('############################################')
print('#Hello This Is A CLOUDCONVERT DEMO SCRIPT#')
print('############################################')
print('Hey Enter The Website U Want TO Convert To PDF :)')
url=input()
print('Sending Ur Details To Our WebServer')
api = cloudconvert.Api('ur3u0ciBIKCKtRfHdkgPzHagqt1FeFMRiIBwDOLdkoUr6HR_7KTGG09GJaM1zp-V91ZDvxtpBb9A_aoLKagLBw')
process = api.convert({
"inputformat": "website",
"outputformat": "pdf",
"input": "url",
"file": "https://" + url
})
print('PLS WAIT FOR CONVERSION.....')
process.wait()
t=process.wait()
print('WEBSITE CONVERTED TO PDF')
print('Downloading ....')
process.download()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment