23 lines
377 B
Go
23 lines
377 B
Go
|
package kemono_test
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
|
||
|
"git.kmsign.ru/royalcat/tstor/daemons/kemono"
|
||
|
)
|
||
|
|
||
|
func TestScrapCreator(t *testing.T) {
|
||
|
k := kemono.NewKemono("https://coomer.su/")
|
||
|
ctx := context.Background()
|
||
|
posts, err := k.FetchPosts(ctx, "onlyfans", "bigtittygothegg")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
|
||
|
for _, post := range posts {
|
||
|
fmt.Println(post)
|
||
|
}
|
||
|
}
|