Closed nelsonic closed 5 years ago
On the basis that the page DOM is almost identical for https://github.com/dwylbot/following and https://github.com/dwylbot/followers We are using the same parser to get the data from these two pages:
https://github.com/nelsonic/github-scraper/blob/5cbe6698d218790d889524693561a66116de1c66/lib/followers.js#L11
The issue is when we attempt to use that data in our example learning app it's "confusing". We can easily simplify this by distinguishing between following and followers.
following
followers
type
url
On the basis that the page DOM is almost identical for https://github.com/dwylbot/following and https://github.com/dwylbot/followers We are using the same parser to get the data from these two pages:
https://github.com/nelsonic/github-scraper/blob/5cbe6698d218790d889524693561a66116de1c66/lib/followers.js#L11
The issue is when we attempt to use that data in our example learning app it's "confusing". We can easily simplify this by distinguishing between
following
andfollowers
.Todo
type
tofollowing
whenurl
matches.