Skip to content

Commit

Permalink
9/23/2023 11:49:50 AM [Auto Git]
Browse files Browse the repository at this point in the history
  • Loading branch information
RyannKim327 committed Sep 23, 2023
1 parent 9086428 commit e9b35a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.autogit
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ let url = async (agent, url) => {
shortDescription: shortDescription,
source: source,
url: link_title,
citation: citations,
cites: {
cite: cites.text(),
url: `https://scholar.google.com${cites.attr()['href']}`
Expand All @@ -78,11 +77,12 @@ let url = async (agent, url) => {

let search = async (search) => {
let agent = await ua()
let data = await url(agent, `https://scholar.google.com/scholar?q=${search.replace(/\s/gi, "+")}`)
let data = await url(agent, `https://scholar.google.com/scholar?q=${search.replace(/\s/gi, "+")}`, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36")
return data
}

module.exports = {
search: search,
url: url
url: url,
getCitation
}
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let b = async () => {
console.log(c)
let d = await a.url('https://scholar.google.com/scholar?q=related:0YuT_-rgrZEJ:scholar.google.com/&scioq=stress+management&hl=en&oe=ASCII&as_sdt=0,5')
console.log(d)
console.log(d.data[0]. cites)
}

b()

0 comments on commit e9b35a9

Please sign in to comment.