Created
May 31, 2017 09:47
-
-
Save whalehulk/8a642f1058c5dda34dfbe2ec236a59e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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