{"id":26571234,"url":"https://github.com/jimmylaurent/lycos","last_synced_at":"2025-03-22T22:36:20.739Z","repository":{"id":34075159,"uuid":"168823449","full_name":"JimmyLaurent/lycos","owner":"JimmyLaurent","description":" ✨All the goodies you'll ever need to scrape the web (NodeJs / Browser)","archived":false,"fork":false,"pushed_at":"2022-12-10T01:02:12.000Z","size":1173,"stargazers_count":5,"open_issues_count":22,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T09:37:35.344Z","etag":null,"topics":["api","scraper","scraping","web"],"latest_commit_sha":null,"homepage":"https://jimmylaurent.github.io/lycos","language":"JavaScript","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/JimmyLaurent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-02T11:09:04.000Z","updated_at":"2023-11-27T03:34:32.000Z","dependencies_parsed_at":"2023-01-15T04:30:39.027Z","dependency_job_id":null,"html_url":"https://github.com/JimmyLaurent/lycos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyLaurent%2Flycos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyLaurent%2Flycos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyLaurent%2Flycos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyLaurent%2Flycos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimmyLaurent","download_url":"https://codeload.github.com/JimmyLaurent/lycos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245030229,"owners_count":20549839,"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","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":["api","scraper","scraping","web"],"created_at":"2025-03-22T22:36:20.194Z","updated_at":"2025-03-22T22:36:20.728Z","avatar_url":"https://github.com/JimmyLaurent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\n\u003ch1\u003e🐾 lycos.js\u003c/h1\u003e\n\u003cp\u003eAll the goodies you'll ever need to scrape the web\u003c/p\u003e\n\u003c/div\u003e\n\n## Documentation\n\n* [Get Started](https://jimmylaurent.github.io/lycos/#/README)\n* [Examples](https://jimmylaurent.github.io/lycos/#/examples)\n* [API Reference](https://jimmylaurent.github.io/lycos/#/api-reference)\n\n\n## In-browser Playground\n\nYou can try the library on codesandbox, it uses a cors proxy fetcher to let you grab contents from any website inside your browser.\n\n* CodeSandbox: https://codesandbox.io/s/njm2p72m\n\n## Installation\n```sh\nyarn add lycos\n# or\nnpm i lycos\n```\n## Features\n\n- ⚡️️ All in one package to fetch and scrape data from the web\n- ⭐ Node \u0026 Browser Support\n- 💡 Powerful declarative API\n- 🚀 Blazingly fast (supports concurrency)\n- 🔧 Extensible\n\n## Quick Example\n```js\nconst lycos = require('lycos');\n\n(async () =\u003e {\n// Fetch the given url and return a page scraper\nconst page = await lycos.get('http://quotes.toscrape.com');\n\n// Scrape all the quotes elements\nconst quoteElements = page.scrapeAll('.quote');\n\n// For each quote element, scrape the text and the author \nconst quotes = quoteElements.map(element =\u003e ({\n    text: element.scrape('.text').text(),\n    author: element.scrape('.author').text()\n}));\n\n// Shortcut to scrape the collection of quotes\nconst quotes = page.scrapeAll('.quote', {\n  author: '.author@text',\n  text: '.text@text'\n});\n\n// Shortcut to fetch and scrape\nconst quotes = await lycos\n  .get('http://quotes.toscrape.com')\n  .scrapeAll('.quote', {\n    author: '.author@text',\n    text: '.text@text'\n  });\n\n})();\n```\n\n## Credits\n\n__\u0026#8226; FB55:__ his work reprensents the core of this library.\n\n__\u0026#8226; Matt Mueller and cheerio contributors :__\nA good portion of the code and concepts are copied/derived from the cheerio and x-ray libraries.\n\n## License\n\nMIT © 2019 [Jimmy Laurent](https://github.com/JimmyLaurent)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmylaurent%2Flycos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimmylaurent%2Flycos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmylaurent%2Flycos/lists"}