import urllib2 import re def openload_account(): # Open the webpage to analyse webpage = urllib2.urlopen("https://api.openload.co/1/account/info?login=9af30d1388e17f5d&key=xDYpTdj2") # Read html code htmlContent = webpage.read() # use re.findall to get all URL links = re.findall('"((http|ftp)s?://.*?)"', htmlContent) # Display all URL finded in the webpage print htmlContent def remote_upload(url): webpage = urllib2.urlopen("https://api.openload.co/1/remotedl/add?login=9af30d1388e17f5d&key=xDYpTdj2&url=url&folder={folder}&^headers=pip") htmlContent = webpage.read() print htmlContent remote_upload('https://s10.bitport.io/download/L6CYGVCToF5hB4Tx5dwrOsX6AoxRSUy5')
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question