{"id":13548103,"url":"https://github.com/antonio-nicolau/chaleno","last_synced_at":"2025-04-13T12:28:11.576Z","repository":{"id":46972651,"uuid":"346661698","full_name":"antonio-nicolau/chaleno","owner":"antonio-nicolau","description":"A Dart package to web scraping data from websites easily and faster using less code lines.","archived":false,"fork":false,"pushed_at":"2024-04-03T20:20:09.000Z","size":136,"stargazers_count":38,"open_issues_count":8,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T12:27:57.402Z","etag":null,"topics":["dart","flutter-webscrap","webscraping","webscraping-data"],"latest_commit_sha":null,"homepage":"","language":"C++","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/antonio-nicolau.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-03-11T10:21:23.000Z","updated_at":"2025-03-19T02:20:51.000Z","dependencies_parsed_at":"2024-03-16T18:45:03.323Z","dependency_job_id":"c87f8853-be2a-4f76-aec7-7370a8095b27","html_url":"https://github.com/antonio-nicolau/chaleno","commit_stats":{"total_commits":25,"total_committers":6,"mean_commits":4.166666666666667,"dds":"0.19999999999999996","last_synced_commit":"e5164bc3cf58d6c58b81b994d6e217b64721209f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonio-nicolau%2Fchaleno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonio-nicolau%2Fchaleno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonio-nicolau%2Fchaleno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonio-nicolau%2Fchaleno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonio-nicolau","download_url":"https://codeload.github.com/antonio-nicolau/chaleno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248713645,"owners_count":21149736,"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":["dart","flutter-webscrap","webscraping","webscraping-data"],"created_at":"2024-08-01T12:01:05.735Z","updated_at":"2025-04-13T12:28:11.543Z","avatar_url":"https://github.com/antonio-nicolau.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Chaleno\r\nA flutter package for webscraping data from websites.\r\n\r\nThis package contains a set of high-level functions that make it easy to webscrap websites. It's multi-platform, supports mobile, desktop, and the web.\r\n\r\n# Usage\r\nScraping data from websites, this package gives you the power to scrape the web in an easy way.\r\n#### Instance Chaleno class\r\n```Dart\r\nvar parser = await Chaleno().load('https://example.com');\r\n```\r\nIt returns a Parser which we can use to start webscraping.\r\n\r\nYou can load HTML file from localhost.\r\n```Dart\r\nvar parser = await Chaleno().load('https://localhost/index');\r\n\r\nvar parser = await Chaleno().load('https://192.168.1.122/index');\r\n```\r\n\r\n#### Very simple to use\r\nAfter instantiating Chaleno class, you can easily retrieve any data using few code lines\r\n```Dart \r\nResult result = parser.getElementById('id');\r\nprint(result.text);\r\n\r\nList\u003cResult\u003e results = parser.getElementsByClassName('className');\r\nresults.map((item) =\u003e print(item.text))\r\n```\r\nYou can return a single result or a list of results and map them. You can find most popular methods and attributes in table below.\r\n\r\n### Example\r\n```Dart \r\nfinal parser = await Chaleno().load('https://example.com');\r\n\r\nfinal title = parser?.getElementById('title').text;\r\nfinal contents = parser.querySelector('.content-card').text;\r\nfinal image = parser.getElementsByTagName('img').src;\r\n\r\n```\r\n## Importants Methods and propriets\r\n|Methods | Mean |\r\n|-------- | ------|\r\n| title | Return the page title |\r\n| getElementById | Return a single element searching for ID on the page |\r\n| getElementsByClassName | Return a list of elements according class passed as parameter |\r\n| getElementsByTagName | Return a list of elements according tag passed as parameter |\r\n| querySelector | Return single element passing a list of selector |\r\n| querySelectorAll | Return a list of elements passing a list of selector |\r\n| text | Return text atribute from a tag returned |\r\n| src | Return src atribute from a tag returned |\r\n| href | Return href atribute from a tag returned |\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonio-nicolau%2Fchaleno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonio-nicolau%2Fchaleno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonio-nicolau%2Fchaleno/lists"}