{"repo":"anaskhan96/soup","free":true,"listed":false,"github":"https://github.com/anaskhan96/soup","clone":"git clone https://github.com/anaskhan96/soup.git","description":"Web Scraper in Go, similar to BeautifulSoup","language":"Go","stars":2277,"topics":["golang","go","webscraper","webscraping","beautifulsoup","web-scraper","html-node"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"soup Web Scraper in Go, similar to BeautifulSoup soup is a small web scraper package for Go, with its interface highly similar to that of BeautifulSoup. Exported variables and functions implemented till now : Root is a struct, containing three fields : Pointer containing the pointer to the current html node NodeValue containing the current html node's value, i.e. the tag name for an ElementNode, or the text in case of a TextNode Error containing an error in a struct if one occurrs, else nil is returned. A detailed text explaination of the error can be accessed using the Error() function. A field Type in this struct of type ErrorType will denote the kind of error that took place, which will consist of either of the following ErrUnableToParse ErrElementNotFound ErrNoNextSibling ErrNoPreviousSibling ErrNoNextElementSibling ErrNoPreviousElementSibling ErrCreatingGetRequest ErrInGetRequest ErrReadingResponse Installation Install the package using the command Example An example code is given below to scrape the \"Comics I Enjoy\" part (text and its links) from xkcd. More Examples Contributions This package was developed in my free time. However, contributions from everybody in the community are welcome, to make it a better web scraper. If you think there should be a particular feature or function included in the package, feel free to open up a new issue or pull request.","default_branch":null,"files":null,"tree":[],"storefront":"/r/anaskhan96","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anaskhan96/soup/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}