Questions tagged [goquery]

A little like that j-thing, only in Go.

A little like that j-thing, only in Go. https://github.com/PuerkitoBio/goquery

76 questions
0
votes
1 answer

How to retrieve search list using goquery from RottenTomatoes?

I'm currently trying to get search list from RottenTomatoes for some researching purposes. I have integrated goquery in an easy way for different sites. But the situation for RottenTomatoes was not the same. I can't get the search list even though I…
Dentrax
  • 574
  • 8
  • 22
0
votes
1 answer

Scraper Find element by text

for example, I have next table
First 1
Second 2
how can I find element by text, for example "Second"…
Oleh Sobchuk
  • 3,612
  • 2
  • 25
  • 41
0
votes
4 answers

Split element on line break with GoQuery

I'm trying to get content from page with GoQuery, but for some reasons I can't do split on line break (br). The HTML, looks like this:
0
votes
2 answers

retrieving text from a website with goquery

I have a html roughly looking like this:

Movies

A Song For Jenny (2015)
Rating: PG
Running Time (minutes): 77
Description: This Drama, based on real life…
0
votes
1 answer

how to get leetcode ranking with goquery

I want to get my leetcode ranking, But I know about html and JavaScript just a little. After a lot of try, I get this output. aQuaYi's ranking is Ranking: {[{ pc.ranking }]} source is package main import ( "fmt" "log" …
aQua
  • 579
  • 5
  • 6
0
votes
1 answer

Limit the scope of selector.Find() to the selected element

I am trying to extract the date and text from HTML with the following structure. I am using goquery to do this.

Jet Basrawi
  • 3,185
  • 2
  • 15
  • 14
0
votes
1 answer

goquery insert newline after text found

I am using "github.com/PuerkitoBio/goquery" to parse numbers from inside 'value' tag in the html document like below 1,2,3 2,4,6 5,6,7 and what I got with code snippet below is…
irom
  • 3,316
  • 14
  • 54
  • 86
0
votes
1 answer

GoQuery Response Code

In GoQuery, if I create a snippet as follows: doc, err := goquery.NewDocument(s) if err != nil { log.Fatal(err) } where s is a valid url, I can see the error string, but if the page is returning a 403, how…
tvishwa107
  • 301
  • 2
  • 14
0
votes
2 answers

How to get simple text from HTML page with goquery?

I am new to Go. I am using goquery to extract data from an HTML page. But the problem is the data I am looking for is not bounded by any HTML tag. It is simple text after a
tag. How can I extract it? Edit : Here is HTML code.
Priyanka
  • 232
  • 3
  • 12
-1
votes
2 answers

how to use goquery to get the select > option 's value

if there's a html like this: