{"id":37135971,"url":"https://github.com/trawlingweb/trawlingwebgo","last_synced_at":"2026-01-14T15:51:13.702Z","repository":{"id":57507007,"uuid":"144583539","full_name":"trawlingweb/trawlingwebgo","owner":"trawlingweb","description":"Trawlingweb client for Go","archived":false,"fork":false,"pushed_at":"2023-08-11T05:54:07.000Z","size":12,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T22:36:14.066Z","etag":null,"topics":["client","golang","news"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trawlingweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-13T13:28:06.000Z","updated_at":"2024-02-12T13:31:07.000Z","dependencies_parsed_at":"2024-06-20T22:07:29.739Z","dependency_job_id":null,"html_url":"https://github.com/trawlingweb/trawlingwebgo","commit_stats":null,"previous_names":["anpro21/trawlingwebgo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trawlingweb/trawlingwebgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trawlingweb%2Ftrawlingwebgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trawlingweb%2Ftrawlingwebgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trawlingweb%2Ftrawlingwebgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trawlingweb%2Ftrawlingwebgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trawlingweb","download_url":"https://codeload.github.com/trawlingweb/trawlingwebgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trawlingweb%2Ftrawlingwebgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","golang","news"],"created_at":"2026-01-14T15:51:12.990Z","updated_at":"2026-01-14T15:51:13.686Z","avatar_url":"https://github.com/trawlingweb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trawlingweb\nOfficial Trawlingweb client for Go Language\n\n[https://trawlingweb.com](https://trawlingweb.com)\n\n\n### Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\ttrw \"github.com/anpro21/trawlingwebgo\"\n)\n\nfunc main() {\n\trequest := trw.TrwRequest{Token: \"ea58ad77426816b16f2cd3c950de07886bc64472\", Query: \"debian AND redhat\", Ts: \"1533459254944\"}\n\tret, err := trw.Query(request)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t} else {\n\t\tfmt.Println(\"Articles: \", len(ret.Response.Data))\n\t\tfor _, article := range ret.Response.Data {\n\t\t\tfmt.Println(article.Title)\n\t\t\tfmt.Println(article.URL)\n\t\t\tfmt.Println(article.ID)\n\t\t\tfmt.Println(\"---------------------\")\n\t\t}\n\t}\n\n\turlnext := ret.Response.Next\n\tfor urlnext != \"\" {\n\t\tret, err = trw.Next(urlnext)\n\t\tif err != nil {\n\t\t\tpanic(err.Error())\n\t\t}\n\t\tfmt.Println(\"Articles: \", len(ret.Response.Data))\n\t\tfmt.Println(\"Rest results: \", ret.Response.RestResults)\n\t\tfmt.Println(\"---------------------\")\n\t\turlnext = ret.Response.Next\n\t}\n\n\tfmt.Println(\"End Query\")\n\n}\n```\n\n### Links\n[Register](https://dashboard.trawlingweb.com/register)\n\n[Control Panel](https://dashboard.trawlingweb.com)\n\n[API documentation](https://dashboard.trawlingweb.com/dashboard)\n\n[Github Repository](https://github.com/anpro21)\n\n### Functions\n```\nQuery(params TrwRequest)\nNext(nexturl string)\n```\n\n### Input Params\n* Token: string with service key\n* Query: String with trawling query\n* Ts: unixtimestamp in ms\n* Tsi: unixtimestamp in ms\n* Sort: \"published\"/\"crawled\"\n* Order: \"asc\"/\"desc\"\n\n### Input Params struct\n\n```go\ntype TrwRequest struct {\n\tToken string\n\tQuery string\n\tTs    string\n\tTsi   string\n\tSort  string\n\tOrder string\n}\n```\n\n### Return struct\n```go\ntype TrwResponse struct {\n\tResponse struct {\n\t\tData         []TrwArticle `json:\"data\"`\n\t\tRequestLeft  int          `json:\"requestLeft\"`\n\t\tTotalResults int          `json:\"totalResults\"`\n\t\tRestResults  int          `json:\"restResults\"`\n\t\tNext         string       `json:\"next\"`\n\t} `json:\"response\"`\n}\n```\n\n### Article struct\n```go\ntype TrwArticle struct {\n\tCrawled      int64     `json:\"crawled\"`\n\tAuthor       string    `json:\"author\"`\n\tLanguage     string    `json:\"language\"`\n\tPublished    time.Time `json:\"published\"`\n\tTitle        string    `json:\"title\"`\n\tURL          string    `json:\"url\"`\n\tSection      string    `json:\"section\"`\n\tValue        float64   `json:\"value\"`\n\tRank         int64     `json:\"rank\"`\n\tVisitors     int64     `json:\"unique_visitors\"`\n\tSite         string    `json:\"site\"`\n\tSiteType     string    `json:\"site_type\"`\n\tSiteSection  string    `json:\"site_section\"`\n\tSiteLanguage string    `json:\"site_language\"`\n\tSiteRegion   string    `json:\"site_region\"`\n\tSiteCountry  string    `json:\"site_country\"`\n\tDomain       string    `json:\"domain\"`\n\tText         string    `json:\"text\"`\n\tID           string    `json:\"id\"`\n}\n```\n\n\n### MIT License\n\nCopyright (c) 2018 Anpro21\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrawlingweb%2Ftrawlingwebgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrawlingweb%2Ftrawlingwebgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrawlingweb%2Ftrawlingwebgo/lists"}