Skip to content

Commit

Permalink
Update google_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ethbak authored Jul 6, 2023
1 parent 1fb0416 commit 9bfe4d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions search_tool/google_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,26 @@ def generate_queries(self, preferences):
for years in list(range(int(preferences["exp_num"]), 31)):
s = ""
if years != 1: s = "s"
queries.append('site:linkedin.com/in intitle:("'+pos+
'") AND ("'+loc+'") AND ("'+
queries.append('site:linkedin.com/in intitle:("'+loc+
'") AND ("'+pos+'") AND ("'+
str(years)+' year' + s + '")')
elif preferences["exp_op"] == "<":
for years in list(range(0, int(preferences["exp_num"]))):
s = ""
if years != 1: s = "s"
if years == 0:
queries.append('site:linkedin.com/in intitle:("'+pos+
'") AND ("'+loc
queries.append('site:linkedin.com/in intitle:("'+loc+
'") AND ("'+pos
+'") -"year" -"years"')
else:
queries.append('site:linkedin.com/in intitle:("'+pos+
'") AND ("'+loc+'") AND ("'+
queries.append('site:linkedin.com/in intitle:("'+loc+
'") AND ("'+pos+'") AND ("'+
str(years)+' year' + s + '")')
elif preferences["exp_op"] == "=":
s = ""
if preferences["exp_num"] != 1: s = "s"
queries.append('site:linkedin.com/in intitle:("'+pos+
'") AND ("'+loc+'") AND ("'+
queries.append('site:linkedin.com/in intitle:("'+loc+
'") AND ("'+pos+'") AND ("'+
str(preferences["exp_num"])+' year")')

# Remove previously searched queries if necessary
Expand Down

0 comments on commit 9bfe4d3

Please sign in to comment.