fixing i2psnarks new form with pythonscript

Issues and ideas about I2PSnark
User avatar
lgillis
Posts: 165
Joined: 20 Oct 2018 12:52
Contact:

Re: fixing i2psnarks new form with pythonscript

Post by lgillis »

Phithue7 wrote: 31 Jul 2024 13:12

Code: Select all

# CONFIG
snarkurl="http://127.0.0.1:7657/i2psnark/"
I mean, the built-in version uses a different port than the free-standing version. If you think it's right, you could extend your script with a corresponding check. Here is an example snippet for clarification:

Code: Select all

# CONFIG
# snarkurl="http://127.0.0.1:7657/i2psnark/"
# Port build-in ./. stand-alone
for j in 7657 8002
do
    curl --silent http://127.0.0.1:${j}/i2psnark/ 1>/dev/null && {
        snarkurl="http://127.0.0.1:${j}/i2psnark/"
        break
    }
done
test -z "${snarkurl}" && {
    printf "I2PSnark was not found under the named ports.\n"
    exit 1
}
printf "I2PSnark: %s\n" "${snarkurl}"
Luther H. Gillis · Private Investigator · Discreet & Confidential
yoMomma
Posts: 2
Joined: 21 Aug 2024 14:22

Re: fixing i2psnarks new form with pythonscript

Post by yoMomma »

none of i2plus 's versions work for me with a proper official i2psnark. not even a proper error message. simply nuthin'
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: fixing i2psnarks new form with pythonscript

Post by Phithue7 »

stay at my 1st version
Phithue7 wrote: 17 Aug 2024 17:36 v1 published, waiting for further feedback.
Contains also a screenshots and a readme.

http://tracker2.postman.i2p/index.php?v ... l&id=79456
if a future i2p/i2psnark version breaks anything, I will most probably bring a tested v2 out.
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: fixing i2psnarks new form with pythonscript

Post by Phithue7 »

Additional tip, posted on postman also:

how to deal with mass magnet url's:

- put the magnet links in a plain text file, one url per line.
- Save the file as magnet.txt
- use xargs (usually present in your Linux system already):

Code: Select all

xargs --arg-file=magnet.txt --delimiter=\\n --max-args=1 magnet.sh
Post Reply