{"id":19373384,"url":"https://github.com/xop/news-scraper-directives","last_synced_at":"2026-02-03T05:07:09.590Z","repository":{"id":80031689,"uuid":"71646113","full_name":"XOP/news-scraper-directives","owner":"XOP","description":"Directives for the NewScraper","archived":false,"fork":false,"pushed_at":"2016-10-30T19:34:52.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T08:02:25.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/XOP.png","metadata":{"files":{"readme":"README.md","changelog":"news-rus.yml","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":"2016-10-22T14:59:54.000Z","updated_at":"2016-10-22T14:59:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"807bd76e-864e-41c0-83a8-021f888d3d92","html_url":"https://github.com/XOP/news-scraper-directives","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XOP/news-scraper-directives","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XOP%2Fnews-scraper-directives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XOP%2Fnews-scraper-directives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XOP%2Fnews-scraper-directives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XOP%2Fnews-scraper-directives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XOP","download_url":"https://codeload.github.com/XOP/news-scraper-directives/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XOP%2Fnews-scraper-directives/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29033720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-10T08:28:01.440Z","updated_at":"2026-02-03T05:07:09.577Z","avatar_url":"https://github.com/XOP.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# NewScraper Directives\n\n\n\n\n\u003e The directives repo for the NewScraper  \n\u003e [https://github.com/XOP/news-scraper](https://github.com/XOP/news-scraper)\n\n\n\n\n## Format\n\nDirectives are being digested by the [NewScraper application](https://github.com/XOP/news-scraper) and passed to the [NewScraper Core](https://github.com/XOP/news-scraper-core).  \nIf you follow, the uniformity of the content is pretty self-evident.\n\nDirectives can be provided in both JSON and YML format.  \nThe latter is used due to it's robust and descriptive nature.\n\nGiven the [template](_template.yml) here: \n\n```\n'NAME':\n  url: ''\n  elem: ''\n  link: ''\n  author: ''\n  time: ''\n  image: ''\n  limit: N\n```\n\n`NAME`  \nname of the resource, **required**\n\n`url`  \nurl of the resource, **required**\n\n`elem`  \nCSS selector of the news item container element, **required**\n\n`link`  \nCSS selector of the link (\u003ca href=\"\"\u003e...\u003c/a\u003e) _inside_ of the `elem`\nIf the `elem` itself _is_ a link, this is not required\n\n`author`  \nCSS selector of the author element _inside_ of the `elem`\n\n`time`  \nCSS selector of the time element _inside_ of the `elem`\n\n`image`  \nCSS selector of the image element _inside_ of the `elem`\nThis one can be `img` tag or any other - NewScraper will search for `data-src` and `background-image` CSS properties to find proper image data\n\n`limit`  \nhow many `elem`-s from the `url` will be scraped, maximum\n\n\nTo pass the collection of resources simply add empty line between them.  \nSee [examples](blogs.yml).\n\n```\n'NAME 1':\n  url: '...'\n  elem: '...'\n  \n'NAME 2':\n  url: '...'\n  elem: '...'\n\n...\n\n'NAME N':\n  url: '...'\n  elem: '...'\n```\n\n\n\n\n## [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxop%2Fnews-scraper-directives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxop%2Fnews-scraper-directives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxop%2Fnews-scraper-directives/lists"}