{"id":21902739,"url":"https://github.com/apgapg/flutter_scrap","last_synced_at":"2025-04-15T20:16:42.809Z","repository":{"id":97735741,"uuid":"280822223","full_name":"apgapg/flutter_scrap","owner":"apgapg","description":"Website Scraping with Dart (Flutter)","archived":false,"fork":false,"pushed_at":"2020-07-19T08:54:26.000Z","size":72,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T20:16:31.749Z","etag":null,"topics":["dart","flutter","scraper","scraping-websites","scrapper"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apgapg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-19T08:17:35.000Z","updated_at":"2022-07-10T07:16:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ea3a295-7fb1-4d06-8ccd-1f0cc7fd98ff","html_url":"https://github.com/apgapg/flutter_scrap","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/apgapg%2Fflutter_scrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apgapg%2Fflutter_scrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apgapg%2Fflutter_scrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apgapg%2Fflutter_scrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apgapg","download_url":"https://codeload.github.com/apgapg/flutter_scrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145421,"owners_count":21219966,"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","scraper","scraping-websites","scrapper"],"created_at":"2024-11-28T15:20:56.847Z","updated_at":"2025-04-15T20:16:42.786Z","avatar_url":"https://github.com/apgapg.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_scrap\n\n## Website Scraping with Dart (Flutter)\n\n```\nvoid initChaptersTitleScrap() async {\n    final rawUrl =\n        'https://unacademy.com/course/gravitation-for-iit-jee/D5A8YSAJ';\n    final webScraper = WebScraper('https://unacademy.com');\n    final endpoint = rawUrl.replaceAll(r'https://unacademy.com', '');\n    if (await webScraper.loadWebPage(endpoint)) {\n      final titleElements = webScraper.getElement(\n          'div.Week__Wrapper-sc-1qeje5a-2 \u003e a.Link__StyledAnchor-sc-1n9f3wx-0 '\n          '\u003e div.ItemCard__ItemInfo-xrh60s-1 '\n          '\u003e h6.H6-sc-1gn2suh-0',\n          []);\n      print(titleElements);\n      final titleList = \u003cString\u003e[];\n      titleElements.forEach((element) {\n        final title = element['title'];\n        titleList.add('$title');\n      });\n      print(titleList);\n      if (mounted)\n        setState(() {\n          this.titleList = titleList;\n        });\n    } else {\n      print('Cannot load url');\n    }\n  }\n```\n\n## Read blog\n\n[https://medium.com/@ayushpguptaapg/website-scraping-with-dart-flutter-56db60033d49?sk=8f63064bca080b548660d430c35386ef](https://medium.com/@ayushpguptaapg/website-scraping-with-dart-flutter-56db60033d49?sk=8f63064bca080b548660d430c35386ef)\n\n## Disclaimer\nAlthough this isn't legal for some websites but here the purpose is solely educational\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapgapg%2Fflutter_scrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapgapg%2Fflutter_scrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapgapg%2Fflutter_scrap/lists"}