Merge branch 'master' of http://192.168.9.19:3000/axiom-team/astroport-iptubes
This commit is contained in:
commit
b80b27f7e5
|
@ -1,2 +1,3 @@
|
||||||
data/*
|
data/*
|
||||||
ygg-crawler/node_modules/
|
ygg-crawler/node_modules/
|
||||||
|
login.py
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
# IPTubes
|
||||||
|
## yggtorrent to IPFS
|
||||||
|
|
||||||
|
This is a submodule of [Astroport project](https://git.p2p.legal/axiom-team/astroport). You can use it standalone.
|
||||||
|
IPTubes is a yggtorrent content migrator to a public IPFS swam.
|
||||||
|
|
||||||
|
### Standalone installation
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://git.p2p.legal/axiom-team/astroport-iptubes.git
|
||||||
|
cd astroport-iptubes
|
||||||
|
./install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
More informations: https://astroport.com
|
||||||
|
|
||||||
|
**WARNING: This is an early stage develepment, use it with great care!**
|
36
crawl.py
36
crawl.py
|
@ -1,17 +1,39 @@
|
||||||
import requests
|
import requests
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
import login
|
||||||
|
|
||||||
from yggtorrentscraper import YggTorrentScraper
|
from yggtorrentscraper import YggTorrentScraper
|
||||||
|
|
||||||
scraper = YggTorrentScraper(requests.session())
|
scraper = YggTorrentScraper(requests.session())
|
||||||
|
|
||||||
from yggtorrentscraper import set_yggtorrent_tld
|
from yggtorrentscraper import set_yggtorrent_tld
|
||||||
|
|
||||||
set_yggtorrent_tld("se")
|
set_yggtorrent_tld("se")
|
||||||
|
name = sys.argv[1]
|
||||||
|
|
||||||
if(scraper.login("kopa4", "Ck695bvkyvPT0PJeYMOPUc")):
|
#torrents_url = scraper.search({"name": name, "sort": "seed", "order": "desc"})
|
||||||
|
#torrents_url = scraper.search({'name' : "walking dead s08"})
|
||||||
|
|
||||||
|
parameters = {
|
||||||
|
"name": name,
|
||||||
|
"category": "films_&_videos",
|
||||||
|
"subcategory": "film",
|
||||||
|
"options": {
|
||||||
|
"langue": {"francais_(vff/truefrench)"},
|
||||||
|
},
|
||||||
|
"sort": "seed",
|
||||||
|
"order": "desc"
|
||||||
|
}
|
||||||
|
research = scraper.search(parameters)
|
||||||
|
most_completed = scraper.most_completed()
|
||||||
|
|
||||||
|
#print(json.dumps(research, sort_keys=True, indent=4))
|
||||||
|
#print(json.dumps(torrents_url, sort_keys=True, indent=4))
|
||||||
|
#print(json.dumps(most_completed, sort_keys=True, indent=4))
|
||||||
|
|
||||||
|
#print(open("login.key","r").read())
|
||||||
|
|
||||||
|
if(scraper.login(login.user, login.passwd)):
|
||||||
print("Login success")
|
print("Login success")
|
||||||
else:
|
else:
|
||||||
print("Login failed")
|
print("Login failed")
|
||||||
|
|
||||||
torrents_url = scraper.search({'name' : "walking dead s08"})
|
#scraper.download_from_torrent_url('')
|
||||||
|
|
||||||
print(torrents_url)
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
user = ""
|
||||||
|
passwd = ""
|
Loading…
Reference in New Issue