• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Golang table webscraping

Resolved: Golang table webscraping

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have a code as below to scrape the specific cell value from html table. You can go to https://www.haremaltin.com/altin-fiyatlari website and search “satis__ATA_ESKI” on inspect mode to see that value. I am beginner on golang and did my best but unfortunately I couldn’t get that value. Is there anybody to help me? Btw they don’t have a community api. And one more thing, add time.sleep to wait for page to be loaded. If it returns “-” it is because page wasn’t be loaded yet
You can see the answer below and if you want you can check the source code to see why this kind of solution is used

Answer:

You can fetch via http Post request. Do not forget to add X-Requested-With header to request.

If you have better answer, please add a comment about this, thank you!

api goquery html-table
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: I am facing ERR_HTTP2_PROTOCOL_ERROR on my website

27/03/2023

Resolved: TypeScript does not recognize properties when instantiating interface array

27/03/2023

Resolved: How to make statement case insensitive when uploading a dta file with specified columns?

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.