hackerlist / glassdoor

Python API for Glassdoor.com
MIT License
81 stars 35 forks source link

Using API is returning zero for all fields #22

Open samuelhkahn opened 10 years ago

samuelhkahn commented 10 years ago

Hey there,

My name is Samuel Kahn and I am a Data Science graduate student at UC Berkeley. I have been using your API For the past couple months with ease (Big Thank You btw), but this past week it stopped working.

For example :

from glassdoor import get x = get('dropbox') x

returns {'satisfaction': {'ratings': 0, 'score': None}, 'ceo': {'reviews': 0, '%approval': None, 'name': '', 'avatar': ''}, 'meta': {'website': '', 'reviews': None, 'name': u'Dropbox', 'connections': 0, 'score': None, 'location': '', 'logo': None, 'size': [None, None]}, 'salary': []}

Did glass door maybe change the layout of their webpage so the crawl isn't working properly?

mekarpeles commented 10 years ago

Sorry for missing this @samuelhkahn. I hope to upload a patch this weekend.

I'm sure glassdoor changed their layout. They also have an API now -- http://www.glassdoor.com/api/index.htm (which they didn't when I started this project)

EDIT: It looks like GlassDoor's public REST API is pretty reasonable now: http://www.glassdoor.com/api/companiesApiActions.htm It may be more worthwhile just to write python bindings using urllib2 or the requests module. This can also address python2.7/3.4 compatibility. Bogged down with work at the moment, will try to get to this asap.

arunkumar3 commented 9 years ago

Dear Mekarpeles,

I am trying to get data from Glassdoor using your package. But I am getting 0 and nulls for all the fields. Did you updated the package with the patch.

Kindly let me know how to get data from Glassdoor.

Thanks in Advance Arun

davidhq commented 8 years ago

Hi,

I get this:

>>> from glassdoor import get
>>> x = get('dropbox')
>>> x
{'satisfaction': {'ratings': 0, 'score': None}, 'ceo': {'reviews': 0, '%approval': None, 'name': '', 'avatar': ''}, 'meta': {'website': '', 'reviews': None, 'name': '', 'connections': 0, 'score': None, 'location': '', 'logo': None, 'size': [None, None]}, 'salary': []}

So I guess the project is not maintained ?

mekarpeles commented 8 years ago

@arunkumar3 @davidhq I'm boarding a flight, will have to look at this when I land. This library was made before Glassdoor offered an API (It is an unofficial API which essentially curls the request and parses it using beautiful soup). I can try to update it to get it working again (it probably won't take much time) -- have you tried their official API?

davidhq commented 8 years ago

Hey! I thought so... so it's good they have the official API now... at the moment I don't need this but in the future I will peek here again.. but probably will use their API directly...

So at least for me no rush :)