mirror of
https://github.com/ngosang/trackerslist.git
synced 2026-04-25 17:35:57 +03:00
[GH-ISSUE #323] ws tracker list in js/jsonp format as well #279
Labels
No labels
bug
enhancement
help wanted
pull-request
question
waiting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/trackerslist-ngosang#279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bmacho on GitHub (Jul 15, 2021).
Original GitHub issue: https://github.com/ngosang/trackerslist/issues/323
the content of trackers_all_ws.txt could be in a format something like
or
So one could call it with ajax/jsonp, or embed it as a script file, in a web page.
@ngosang commented on GitHub (Jul 15, 2021):
As far as I know you can request plain/text resources with Ajax and split the response with "\r\n".
I prefer to keep things simple if you don't mind.
@bmacho commented on GitHub (Jul 15, 2021):
You seem to be right, AJAX and CORS policy may allow scraping .txt files. (I don't find any specification, or even a stackoverflow question about it.)
This seem to work, with splitting with "\n\n":
Thank you!