Skip to content
moistariPublic

About

tl api

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

About

TL API. See: Go reference

Using:

go get github.com/moistari/tlapi

Example:

// example/example.go
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/moistari/tlapi"
)

func main() {
	// read cf_clearance, tluid, and tlpass cookies from browser ... hint: use github.com/browserutils/kooky !
	cl := tlapi.New(tlapi.WithCreds([]string{"<cf_clearance>", "<cf_clearance>"}, "<tluid>", "<tlpass>"))
	req := tlapi.Search("framestor", "2019")
	for req.Next(context.Background(), cl) {
		torrent := req.Cur()
		fmt.Printf("%d: %s\n", torrent.ID, torrent.Name)
	}
	if err := req.Err(); err != nil {
		log.Fatal(err)
	}
}

About

tl api

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages