{"id":17530994,"url":"https://github.com/danp/scraperlite","last_synced_at":"2025-10-04T03:56:07.842Z","repository":{"id":66584246,"uuid":"461573768","full_name":"danp/scraperlite","owner":"danp","description":"Scrape text and HTML based on CSS selectors and save contents to a SQLite database.","archived":false,"fork":false,"pushed_at":"2025-01-26T18:03:50.000Z","size":23,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T03:56:07.036Z","etag":null,"topics":["golang","scraping","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danp.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":"2022-02-20T18:10:56.000Z","updated_at":"2025-03-31T12:11:19.000Z","dependencies_parsed_at":"2025-01-19T15:18:33.540Z","dependency_job_id":"b29a205d-acfc-4840-a89d-388bf36bb6a3","html_url":"https://github.com/danp/scraperlite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danp/scraperlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danp%2Fscraperlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danp%2Fscraperlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danp%2Fscraperlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danp%2Fscraperlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danp","download_url":"https://codeload.github.com/danp/scraperlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danp%2Fscraperlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278262445,"owners_count":25957938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","scraping","sqlite"],"created_at":"2024-10-20T17:14:12.426Z","updated_at":"2025-10-04T03:56:07.826Z","avatar_url":"https://github.com/danp.png","language":"Go","readme":"# scraperlite\n\nScrape text and HTML based on CSS selectors and save contents to a SQLite database.\n\nRepeated runs save changed content and the observation timestamp.\n\n## Example\n\n``` shell\nscraperlite https://go.dev \\\n    popularCLIPackages.html '#main-content \u003e section.WhyGo \u003e div \u003e ul \u003e li:nth-child(2) \u003e div.WhyGo-reasonFooter \u003e div.WhyGo-reasonPackages \u003e ul' \\\n    whyWebDevelopment.txt '#main-content \u003e section.WhyGo \u003e div \u003e ul \u003e li:nth-child(3) \u003e div.WhyGo-reasonDetails \u003e div.WhyGo-reasonText \u003e p'\n```\n\nIn a sqlite3 shell:\n\n``` shell\nsqlite\u003e select t, substr(content-\u003e'popularCLIPackages'-\u003e\u003e'html', 1, 20) || '...' as popular_packages_html,\n  content-\u003e'whyWebDevelopment'-\u003e\u003e'txt' as why_web_development\n  from observations join contents on (contents.id=content_id)\n  order by t;\n+----------------------------------+-------------------------+-----------------------------------------------------------+\n|                t                 |  popular_packages_html  |                    why_web_development                    |\n+----------------------------------+-------------------------+-----------------------------------------------------------+\n| 2025-01-05T18:59:27.496327-04:00 | \u003cdiv class=\"WhyGo-re... | With enhanced memory performance and support for several  |\n|                                  |                         | IDEs, Go powers fast and scalable web applications.       |\n+----------------------------------+-------------------------+-----------------------------------------------------------+\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanp%2Fscraperlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanp%2Fscraperlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanp%2Fscraperlite/lists"}