Skip to content

Commit

Permalink
fix🐛: update get element
Browse files Browse the repository at this point in the history
  • Loading branch information
isboyjc committed Aug 1, 2024
1 parent 6f8446b commit 8a80e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function delay(ms) {
console.log("Number of languages: ", languages.length)

for(const langObj of languages){
await delay(3000)
await delay(5 * 60)
await run('daily', convertToSlug(langObj.name))
await run('weekly', convertToSlug(langObj.name))
await run('monthly', convertToSlug(langObj.name))
Expand Down
2 changes: 1 addition & 1 deletion script/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function parse(data){
const forks = $(elm).find(`a[href=${url + '/forks'}]`).text().replace(/\n/g, '').trim()
const addStars = $(elm).find('span').last().text().match(/\d+/g)[0]
const contributors = $(elm).find(`a[data-hovercard-type="user"]`).map((_ ,user) => {
const name = $(user).find('.avatar.avatar-user').attr('alt').replace(/^@/, '')
const name = $(user).find('.avatar').attr('alt').replace(/^@/, '')
return {
avatar: $(user).find('.avatar.avatar-user').attr('src'),
name,
Expand Down

0 comments on commit 8a80e92

Please sign in to comment.