Dokifansubs / anidex_www

Front end for anidex.moe
0 stars 0 forks source link

Create scrape API to scrape other trackers. #37

Open Orillion360 opened 10 years ago

Orillion360 commented 10 years ago

It's hard to scrape UDP trackers client side, and it's impossible to scrape HTTP trackers client side if our site is https. So we need a method to scrape server side.

http(s)://anidex.moe/scrapetracker?url=???&hash=???

returns json format scrape data

{
  info_hash: '<info_hash>',
  seeders: <seeders>,
  leechers: <leechers>,
  completed: <completed>
}