chore: Update dependencies, Update golang version

This commit is contained in:
Manuel 2024-04-27 22:19:41 +02:00
parent e6bf12fa35
commit 8f13f765a1
Signed by: Manuel
GPG key ID: 4085037435E1F07A
8 changed files with 42 additions and 23 deletions

View file

@ -5,7 +5,7 @@ import (
"fmt"
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
ts "github.com/n0madic/twitter-scraper"
ts "github.com/imperatrona/twitter-scraper"
"strconv"
)

View file

@ -3,7 +3,7 @@ package cmd
import (
"context"
"encoding/json"
ts "github.com/n0madic/twitter-scraper"
ts "github.com/imperatrona/twitter-scraper"
"log"
"math/rand"
"net/http"
@ -79,7 +79,7 @@ func Run() {
scraper := ts.New()
if config.ProxyAddr != "" {
err = scraper.SetProxy(config.ProxyAddr)
err := scraper.SetProxy(config.ProxyAddr)
if err != nil {
log.Fatalf("An error occurred with proxy connection: %s\n", err.Error())
}
@ -101,7 +101,7 @@ func Run() {
} else {
scraper.ClearCookies()
if len(config.Username) > 0 {
err = scraper.Login(config.Username, config.Password)
err := scraper.Login(config.Username, config.Password)
if err != nil {
log.Fatalf("An error occurred during scraper login: %s\n", err.Error())
} else {
@ -122,7 +122,7 @@ func Run() {
}
} else {
log.Println("Trying open account login... ")
err = scraper.LoginOpenAccount()
_, err := scraper.LoginOpenAccount() // TODO: save openaccount token/secret
if err != nil {
log.Fatalf("An error occurred during scraper login: %s\n", err.Error())
}

View file

@ -3,7 +3,7 @@ package cmd
import (
"bytes"
"encoding/json"
ts "github.com/n0madic/twitter-scraper"
ts "github.com/imperatrona/twitter-scraper"
"log"
"net/http"
"strings"