go-sbb-api
GoQuery
go-sbb-api | GoQuery | |
---|---|---|
1 | 11 | |
- | 13,656 | |
- | 0.6% | |
- | 6.4 | |
- | about 1 month ago | |
Go | ||
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-sbb-api
-
I Need to Find an Apartment
Interesting article: I did something similar but for Zürich (finding a low-price, but good apartment there is almost impossible).
I did follow a different approach though, and reverse engineered the APIs of the most common rental listing websites here.
I didn't publish the code (or better said, I didn't make it public), but it's similar to yours. Instead of SQLite I used a PostGis database where I stored the apartments with their point to point public transport distance from my office (pre-covid search). I did it in Rust.
Whilst the application is not available to the public (yet), all of the libraries I've created are now available.
I should have both a Rust and a Golang version for most / all of them.
On a side note, I did a similar project (scraper + visualizer / search) for finding a job for my girlfriend by scraping LinkedIn, Xing and a couple of other local job posting websites.
[0]: https://github.com/denysvitali/sbb-api-rs
[1]: https://github.com/denysvitali/homegate-rs
[2]: https://github.com/denysvitali/flatfox-rs
[3]: https://github.com/denysvitali/go-sbb-api
GoQuery
-
Show HN: Flyscrape – A standalone and scriptable web scraper in Go
Your comment was posted 4 minutes ago. That means you still have enough time to edit your comment to change it so it contains real URLs:
<https://github.com/PuerkitoBio/goquery>
<https://github.com/dop251/goja>
(Please do not reply to this comment—I won't be able to delete it once the previous post is fixed if it contains replies.)
-
Check to see if JSON contains something
How about - https://github.com/PuerkitoBio/goquery
-
Help understanding goquery return value
Assuming you're asking about https://github.com/PuerkitoBio/goquery , to interpret your printout you want to look at what Find is defined to return, a *Selection. https://github.com/PuerkitoBio/goquery/blob/39fb6d4dc47a07e5782494b6defc89a194b1f906/traversal.go#L23
-
Learn how to scrape Trustpilot reviews using Go
github.com/PuerkitoBio/goquery - library that provides a convenient and concise way to query HTML and XML documents. It provides a jQuery-like API for selecting elements and extracting data, making it a popular choice for web scraping in Go.
-
Service for generate RSS/Atom feeds from web pages that lack them.
Yep, I thing I can add it. Add new goquery alternative will be good :)
-
Is there a library similar to HTMLUnit in GO?
If I want to parse the structure of HTML and not interact with it from a browser point of view, I use this in Go: https://github.com/PuerkitoBio/goquery
-
10分钟go crawler colly从入门到精通
goquery
-
I Need to Find an Apartment
I had a similar problem that I solved with goquery and otto. You can use goquery to traverse the DOM and otto to execute the script fragment. Then just grab the data from otto's VM.
Your scraping being slow and using Chrome might be a blessing in disguise though. If you aren't careful you can get detected as a bot and banned from the site.
https://github.com/PuerkitoBio/goquery
-
Static analyzers for text templates
If you're willing to add constraints around the goal, you can catch this type of error with semgrep rules and/or unit tests using qoquery.
-
Building Golang crawler with Docker
RUN go get github.com/PuerkitoBio/goquery
What are some alternatives?
flatfox-rs - Flatfox's unofficial Rust API
colly - Elegant Scraper and Crawler Framework for Golang
homegate-rs - Unofficial HomeGate API for Rust
xpath - XPath package for Golang, supports HTML, XML, JSON document query.
athome-scraper - A tool to scrape and visualise apartments from athome.lu
htmlquery - htmlquery is golang XPath package for HTML query.
Nominatim - Open Source search based on OpenStreetMap data
mxj - Decode / encode XML to/from map[string]interface{} (or JSON); extract values with dot-notation paths and wildcards. Replaces x2j and j2x packages.
xml - Package feed implements a flexible, robust and efficient RSS and Atom parser
goregen - randexp for Go.
toml - TOML parser for Golang with reflection.
bluemonday - bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS