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

feat: add scraper for omdena and methods for retrieving datasets, projects and blogs #1107

Closed
wants to merge 2 commits into from

Conversation

arpy8
Copy link
Contributor

@arpy8 arpy8 commented Jun 6, 2024

Description

I've added the Omdena class which has three methods: get_datasets(), get_projects(), and get_blogs(). These methods allow users to retrieve information about datasets, ongoing projects, and latest blogs from Omdena.

Resolves: #1099

Checklist

Before submitting this pull request, kindly verify that the ensuing checkpoints have been reached.

  • Have you adhered to the repository's defined coding convention rules?
  • Have you updated the 'documentation.md' file with the method/function documentation?
  • Have you sent a message along with the result or response?
  • Have you used the try-catch technique?
  • Has the method/class been added to the documentation (md file)?

Screenshots

class:
image

working example:
image

Additional Notes/Comments

I've also upated the dev-documentation and have added omdena.md in docs/modules

I certify that I have carried out the relevant checks and provided the requisite screenshot for validation by submitting this pull request.
I appreciate your contribution.

arpy8 added 2 commits June 7, 2024 02:53
… and blogs

This commit adds the `Omdena` class and three methods: `get_datasets()`, `get_projects()`, and `get_blogs()`. These methods allow users to retrieve information about datasets, ongoing projects, and latest blogs from Omdena. The class and methods are implemented in the `omdena.py` file.
Copy link
Member

@nikhil25803 nikhil25803 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omenda.get_blogs() method is returning None. Else the other are working fine. Also omenda.get_projects() is returning None.

@arpy8
Copy link
Contributor Author

arpy8 commented Jun 7, 2024

Hi @nikhil25803 , thanks for pointing this out. There must be some exception that's getting triggered, could you please switch the return type to print the exception so that I can see what's happening exactly. Unfortunately I won't be able to replicate the case since the code is getting executed successfully in my env.

from scrape_up.omdena import Omdena

omdena = Omdena()
projects = omdena.get_projects()
print(projects)

image

image

@nikhil25803 nikhil25803 closed this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Add scraper for Omdena Dashboard
2 participants