AummaAumma
20-06-17, 21:05
Dear Erosharers,
It’s been a pleasure serving the amateur community these past few years.
The amount of growth and demand we’ve experienced has been phenomenal to say the least. Sadly, we are no longer able to offer this service.
Eroshare.com will shut down on June 30th, 2017. Albums will remain viewable until that day. Please download and backup your files.
We wish everyone the best in their passions and pursuits!
Regards,
Randy and Paul
ho adattato lo script di un tizio in python2.7 per fare il backup
import os
import sys
import json
import requests
def download_from_user(username):
if not os.path.exists(username):
os.mkdir(username)
os.chdir(username)
for page in range(1, 100):
r = requests.get('https://eroshare.com/u/' + username + '.json?page=' + str(page))
j = r.json()
if len(j) == 0:
break
with open(username + '_metadata-' + str(page) + '.json', 'w') as f:
text = json.dumps(j, indent=4, sort_keys=True)
f.write(text)
for post in j:
for item in post['items']:
itemType = item['type']
filename = post['slug']
fileUrl = item['url_full_protocol']
if itemType == 'Video':
fileUrl = item['url_mp4']
if itemType == 'Image':
fileUrl = 'https:' + item['url_orig']
filename += '-' + fileUrl.split('/')[-1]
download_item(fileUrl, filename)
def download_item(item_url, filename):
r = requests.get(item_url, stream=True)
with open(filename, 'wb') as f:
for chunk in r.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
return filename
if __name__ == '__main__':
download_from_user(sys.argv[1])
si fa così quando volete scaricarvi tutti i dati di un utente:
eroshare.com/u/NOMEUTENTE
python2.7 nomeconcuiloavetesalvato.py NOMEUTENTE
vi salverà tutto in questo modo:
NOMEUTENTE/albumid-itemid.ext
più i metadati in json.
Se cercate eroshare.com/u/ su google trovate un mucchio.
topa di incoraggiamento
http://i.imgur.com/KYVEQgx.jpg
http://i.imgur.com/CDXR5oC.jpghttp://i.imgur.com/UCEjbze.jpghttp://i.imgur.com/thbbADB.jpghttp://i.imgur.com/6y2Jeig.jpg
http://i.imgur.com/dH5l0Pe.jpg
It’s been a pleasure serving the amateur community these past few years.
The amount of growth and demand we’ve experienced has been phenomenal to say the least. Sadly, we are no longer able to offer this service.
Eroshare.com will shut down on June 30th, 2017. Albums will remain viewable until that day. Please download and backup your files.
We wish everyone the best in their passions and pursuits!
Regards,
Randy and Paul
ho adattato lo script di un tizio in python2.7 per fare il backup
import os
import sys
import json
import requests
def download_from_user(username):
if not os.path.exists(username):
os.mkdir(username)
os.chdir(username)
for page in range(1, 100):
r = requests.get('https://eroshare.com/u/' + username + '.json?page=' + str(page))
j = r.json()
if len(j) == 0:
break
with open(username + '_metadata-' + str(page) + '.json', 'w') as f:
text = json.dumps(j, indent=4, sort_keys=True)
f.write(text)
for post in j:
for item in post['items']:
itemType = item['type']
filename = post['slug']
fileUrl = item['url_full_protocol']
if itemType == 'Video':
fileUrl = item['url_mp4']
if itemType == 'Image':
fileUrl = 'https:' + item['url_orig']
filename += '-' + fileUrl.split('/')[-1]
download_item(fileUrl, filename)
def download_item(item_url, filename):
r = requests.get(item_url, stream=True)
with open(filename, 'wb') as f:
for chunk in r.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
return filename
if __name__ == '__main__':
download_from_user(sys.argv[1])
si fa così quando volete scaricarvi tutti i dati di un utente:
eroshare.com/u/NOMEUTENTE
python2.7 nomeconcuiloavetesalvato.py NOMEUTENTE
vi salverà tutto in questo modo:
NOMEUTENTE/albumid-itemid.ext
più i metadati in json.
Se cercate eroshare.com/u/ su google trovate un mucchio.
topa di incoraggiamento
http://i.imgur.com/KYVEQgx.jpg
http://i.imgur.com/CDXR5oC.jpghttp://i.imgur.com/UCEjbze.jpghttp://i.imgur.com/thbbADB.jpghttp://i.imgur.com/6y2Jeig.jpg
http://i.imgur.com/dH5l0Pe.jpg