Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using API is returning zero for all fields #22

Open
samuelhkahn opened this issue Sep 12, 2014 · 5 comments
Open

Using API is returning zero for all fields #22

samuelhkahn opened this issue Sep 12, 2014 · 5 comments

Comments

@samuelhkahn
Copy link

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
Copy link
Member

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
Copy link

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
Copy link

davidhq commented Jan 14, 2016

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
Copy link
Member

@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
Copy link

davidhq commented Jan 14, 2016

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants