kameturtle / FSquare

website for F1 student to find jobs in US
0 stars 0 forks source link

url form problem in process.py - dev/lain branch checked out #1

Open tukai21 opened 6 years ago

tukai21 commented 6 years ago

The backend process.py has a problem in forming a url for HTTP request to Glassdoor.

Currently, key_word from the "POST" request is directly used in the url. When it contains spaces, the server side will have URLError. So I just added a line to handle this.

Also, the process isn't able to incorporate geographic information, which should be placed at locId in the url. I would suggest you using the Glassdoor's front page as a starting endpoint with which you can do more sophisticated job search.

kameturtle commented 6 years ago

Thank you for the debug of "key_word".

Yes, we need to implement the scheme in a way that we can take the "location" as a variable as well. The thing is they use the numbers to represent each cities in US so that we cannot take the same method as "key_word". I plan to use dictionary to store these numbers tagged with city names as a string. Is there any idea how to create this dictionary?