This is a GO application designed as an automatic seed checker for the nCore.pro website.
-
URL Verification: After downloading, verify the URLs in the
main.gofile:loginUrl: this should point tologin.php.activityUrl: this should point tohitnrun.php.
-
Filling in Login Information: nCore shows a reCAPTCHA on the login form, so the recommended way is to log in once on the web interface's Settings page (see below). The session cookie is saved to
settings.jsonand used for every check. Alternatively you can provide your username and password using command line flags (these are also used as a fallback if the saved cookie expires):-u your_username-p your_password
-
Setting the Output Directory:
- Specify the directory using the
-oflag. - Note: This application does not re-download the torrents, you need to set your torrent client to download the torrent files into the same folder, where they will be automatically added to the torrent client.
- Specify the directory using the
-
Building the Application:
- Required dependencies:
go get github.com/chromedp/chromedpgo get github.com/chromedp/cdproto/cdp
- First build the web interface (WebAssembly) with
go generate, then: - On Windows:
go build -o ncore_automation.exe . - On Linux/Mac:
go build -o ncore_automation . - Run the above command in the directory where the downloaded file is located.
- Required dependencies:
-
Running the Application:
- One-time Run:
./ncore_automation -u user -p pass -o ./torrents - Web Interface:
./ncore_automation -u user -p pass -o ./torrents -webOpen http://localhost:8080 to view status, history and the live log; the page updates itself over a websocket. You can change the port with-port 9090. - Continuous Mode (Every 10 min):
./ncore_automation -u user -p pass -o ./torrents -web -interval 10m
Use the
-dflag to enable logging tolog.txt. - One-time Run:
-
Logging in on the Settings page:
- Open the Settings tab and click Log in to nCore. A browser running on the server opens the nCore login page and streams it into the page; click and type in it as usual, and solve the reCAPTCHA.
- Once you are logged in, the cookie is saved automatically (or click Save cookie). Use Test cookie to check it later; the dashboard shows when it has expired.
- The output directory and the check interval can also be set here (unless given with
-o/-interval). - Without the web interface a cookie can also be given in the
NCORE_COOKIEenvironment variable (name=value; name2=value2). - Use
CHROME_PATHto point to Chrome/Chromium if it is not found automatically. - Note: the web interface has no password. Do not expose its port to the internet.
Important: I am not responsible for any illegal content distribution. This application only automates manual steps.
HUN
Ez egy nCore.pro oldalhoz készült automatikus seed checker GO alkalmazás.
-
URL ellenőrzés: Miután letöltötted, ellenőrizd a
main.gofájlban:loginUrl: ennek alogin.php-ra kell vezetnie.activityUrl: ennek ahitnrun.php-ra kell vezetnie.
-
Login adatok megadása: Az nCore bejelentkezésnél reCAPTCHA van, ezért a javasolt mód, hogy egyszer bejelentkezel a webes felület Settings (Beállítások) oldalán (lásd lent). A session cookie a
settings.json-ba mentődik, és minden ellenőrzés ezt használja. Megadhatod a felhasználónevedet és jelszavadat parancssori kapcsolókkal is (ezeket akkor is használja, ha a mentett cookie lejárt):-u felhasznalonev-p jelszo
-
Kimeneti könyvtár beállítása:
- Az
-okapcsolóval adhatod meg, hova kerüljenek a letöltött.torrentfájlok. - Figyelem: Ez az alkalmazás nem tölti vissza a torrentet, hanem egy tetszőleges torrent alkalmazásba kell beállítani, hogy ugyanabba a mappába töltse le a torrent fájlokat, ahol automatikusan hozzáadja őket a torrent alkalmazáshoz.
- Az
-
Alkalmazás buildelése:
- Szükséges kiegészítők:
- go get github.com/chromedp/chromedp
- go get github.com/chromedp/cdproto/cdp
- Először buildeld a webes felületet (WebAssembly) a
go generateparanccsal, utána: - Windows rendszeren:
go build -o ncore_automation.exe . - Linux/Mac rendszeren:
go build -o ncore_automation . - Futtasd le a fenti parancsot a letöltött fájl mappájában.
- Szükséges kiegészítők:
-
Alkalmazás futtatása:
- Egyszeri futtatás:
./ncore_automation -u user -p pass -o ./torrents - Web felület:
./ncore_automation -u user -p pass -o ./torrents -webMegtekintheted a http://localhost:8080 címen (állapot, előzmények, élő log; websocketen keresztül magától frissül). A portot a-port 9090kapcsolóval módosíthatod. - Folyamatos futtatás (10 percenként):
./ncore_automation -u user -p pass -o ./torrents -web -interval 10m
- Egyszeri futtatás:
-d kapcsolóval log.txt-be logol
- Bejelentkezés a Settings oldalon:
- Nyisd meg a Settings fület, és kattints a Log in to nCore gombra. A szerveren futó böngésző megnyitja az nCore bejelentkező oldalát, és élőben megjeleníti az oldalon; ugyanúgy kattinthatsz és gépelhetsz benne, a reCAPTCHA-t is itt oldod meg.
- Bejelentkezés után a cookie automatikusan elmentődik (vagy kattints a Save cookie gombra). A Test cookie gombbal később ellenőrizheted; a Dashboard jelzi, ha lejárt.
- Itt állítható a kimeneti mappa és az ellenőrzési időköz is (ha nem
-o/-intervalkapcsolóval adtad meg). - Webes felület nélkül a cookie-t a
NCORE_COOKIEkörnyezeti változóban is megadhatod (nev=ertek; nev2=ertek2). - Ha a Chrome/Chromium nem található automatikusan, a
CHROME_PATHváltozóval adhatod meg az útvonalát. - Figyelem: a webes felület nincs jelszóval védve, ne tedd elérhetővé az internetről.
Fontos: Semmilyen felelősséget nem vállalok jogsértő tartalom terjesztéséért, ez az alkalmazás csak a manuális lépéseket váltja ki.