{"id":23628621,"url":"https://github.com/itz-fork/vrawler","last_synced_at":"2026-01-25T14:32:10.947Z","repository":{"id":209241776,"uuid":"723559053","full_name":"Itz-fork/vrawler","owner":"Itz-fork","description":"Helper functions for web scraping in V (vlang)","archived":false,"fork":false,"pushed_at":"2023-11-30T18:52:56.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T19:39:34.871Z","etag":null,"topics":["v","vlang","vlang-module","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"V","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/Itz-fork.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,"zenodo":null}},"created_at":"2023-11-26T03:31:18.000Z","updated_at":"2023-11-30T18:39:15.000Z","dependencies_parsed_at":"2023-11-30T19:34:29.997Z","dependency_job_id":null,"html_url":"https://github.com/Itz-fork/vrawler","commit_stats":null,"previous_names":["itz-fork/vrawler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Itz-fork/vrawler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2Fvrawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2Fvrawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2Fvrawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2Fvrawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Itz-fork","download_url":"https://codeload.github.com/Itz-fork/vrawler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2Fvrawler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: 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":["v","vlang","vlang-module","web-scraping"],"created_at":"2024-12-28T00:46:49.012Z","updated_at":"2026-01-25T14:32:10.929Z","avatar_url":"https://github.com/Itz-fork.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vrawler\nSome helper functions that I use to scrape websites\n\n### Retrive by selectors\nUsed to retrive html elements using css selectors\n\n- Function: `from_selector`\n- Arguments:\n    - `hdoc`: html document as a string (if parsed convert to str with `parsed.str()`)\n    - `selectors`: string of css selectors (Ex: `#myid \u003e p \u003e a:nth-child(1)`)\n\n\u003cdetails\u003e\n    \u003csummary\u003eExample\u003c/summary\u003e\n    \n```html\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003ctitle\u003eTest file\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv id=\"mydiv\"\u003e\n        \u003ca href=\"https://www.google.com/\"\u003eGoogle\u003c/a\u003e\n        \u003ca href=\"https://vlang.io/\"\u003e\u003cspan\u003eV\u003c/span\u003e lang\u003c/a\u003e\n    \u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n```v\nimport vrawler\n\nfn main() {\n    // Suppose this index.html == above html\n    html_str := read_file('/home/scraped/mysite/index.html')\n    spn := vrawler.from_selector(html_str, '#mydiv \u003e a:nth-child(2) \u003e span')\n    println(spn)\n}\n\n// stdout\n// [\u003cspan\u003eV\u003c/span\u003e]\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitz-fork%2Fvrawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitz-fork%2Fvrawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitz-fork%2Fvrawler/lists"}