Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Refresh oDesk skills #18

Open
ipeirotis opened this issue Dec 12, 2012 · 4 comments
Open

Refresh oDesk skills #18

ipeirotis opened this issue Dec 12, 2012 · 4 comments

Comments

@ipeirotis
Copy link
Owner

Fetch periodically the oDesk dumps and return the extra field with the oDesk skill by fetching from https://www.odesk.com/api/profiles/v1/metadata/skills/ and then get the details for each skill https://www.odesk.com/api/profiles/v1/metadata/skills/adobe-acrobat

@georgegg
Copy link
Collaborator

This is possible if we add new ones (see if we have new skills and do that for the new ones ONLY)!!! To renew all the table (empty and repopulate again) is impossible as oDesk after a while returns no data (Too many CURLs).

@ipeirotis
Copy link
Owner Author

No need to empty and repopulate. Just go over the oDesk skill list, and fetch one after the other, and inserting/updating the entry at the table.

Just run this with a big sleep in between. You can keep running the fetch every few minutes. For example, if you fetch one every 30 seconds, you will be done with the refresh within a day.

You may have another process to check for deleted skills as well.

@georgegg
Copy link
Collaborator

It wold be great to know odesk api strategy for connection limits etc.

This way I can devise the best way to do refresh for odesk skills.

Is it possible to have such info?

@ipeirotis
Copy link
Owner Author

Just check for 503 error and back off with an exponentially increasing delay when you hit a 503. Seems to be the best practice.

georgegg added a commit that referenced this issue Jan 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants