-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When installing and running the CLI, we learn that this needs a Redis instance at hands, a torrent-hash and some configuration to be passed.
The hash is presumably an info hash, and can be retrieved for example with torrenttools show infohash sm_85100000-85199999.torrent.
podman run -d -p 6379:6379 -v /srv/redis/state:/data:z docker.io/library/redis:alpine redis-server --appendonly yes
torrenttools show infohash sm_85100000-85199999.torrentexport REDIS_PORT=6379
export REDIS_HOST=localhost
export MAX_AGE=10Then the application can be used in multiple ways.
echo "ea18b2c1560e6b90f22c2d22a1a56e9c63af6335" | node src/scrape-cli.js --torrent-hashes-stdin
node src/scrape-cli.js --torrent-hash=ea18b2c1560e6b90f22c2d22a1a56e9c63af6335
Unfortunately both will error in the same way:
Scraping hash ea18b2c1560e6b90f22c2d22a1a56e9c63af6335
Redis client connected
Waiting for queue lock
Fetching queue contents
TypeError: Cannot read property '_id' of null
at updateStats (/home/yala/src/github.com/phillmac/torrent-health-scraper/src/scrape-functions.js:138:20)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async /home/yala/src/github.com/phillmac/torrent-health-scraper/src/scrape-cli.js:56:5
Finished
This means the Redis queue does not return any entry to be parsed.
- Is this the correct way to invoke the scraper?
Passing a Magnet link (including the trackers, which might be needed for peer discovery) also does not work:
torrenttools magnet sm_85100000-85199999.torrent | node src/scrape-cli.js --torrent-hashes-stdin
- Which is the correct way to set up and invoke this package?
Metadata
Metadata
Assignees
Labels
No labels