Skip to content

Commit

Permalink
fix: add extra delay before scraping new page
Browse files Browse the repository at this point in the history
  • Loading branch information
freekvandeven committed Feb 15, 2024
1 parent 0afef32 commit 276d76a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scraper/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void main() async {
// Check if the repository name starts with 'flutter_' or has 'component' topic
bool isComponent = name.startsWith('flutter_');
// Load the repository page to check for topics
await Future.delayed(Duration(milliseconds: 100));
if (await webScraper.loadWebPage('/Iconica-Development/$name')) {
var topics = webScraper.getElement('a.topic-tag.topic-tag-link', []);
print(topics);
Expand Down Expand Up @@ -96,6 +97,7 @@ void main() async {
}
}
}
print(output);

var file = File('../profile/README.md');
var contents = file.readAsStringSync();
Expand Down

0 comments on commit 276d76a

Please sign in to comment.