Skip to content

Commit

Permalink
Add user agent spoof comment
Browse files Browse the repository at this point in the history
  • Loading branch information
m7kvqbe1 committed Mar 12, 2024
1 parent 5fd0385 commit ba7a991
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func sendText(number, key string) {

func fetch(ctx context.Context) {
c := colly.NewCollector(
// Spoof user agent to avoid bot detection
colly.UserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/91.0.4472.124 Safari/537.36"),
)

Expand Down

0 comments on commit ba7a991

Please sign in to comment.