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

Script for Getting Links from Database #1

Closed
jaredb1011 opened this issue Apr 1, 2023 · 2 comments · Fixed by #20
Closed

Script for Getting Links from Database #1

jaredb1011 opened this issue Apr 1, 2023 · 2 comments · Fixed by #20
Labels
good first issue Good for newcomers

Comments

@jaredb1011
Copy link
Contributor

jaredb1011 commented Apr 1, 2023

Description:

We need code that downloads sets of gameplay video URLs submitted by users of waldo.vision and stored in our SQL database. The code should ensure the URLs are valid, have been reviewed by users 25 or more times, and have a 90% or higher positive rating. The code must also prevent downloading duplicate links. The analysis team will need to coordinate with the infrastructure team to identify the best way to download these URLs.

Requirements:

  • Coordinate with the infrastructure team to establish the best method for accessing the SQL database.
  • Query the SQL database to retrieve URLs of gameplay videos that meet the following criteria:
  1. Have been reviewed by users 25 or more times
  2. Have a 90% or higher positive rating
  • Validate the retrieved URLs to ensure they are valid gameplay video URLs.
  • Check for and avoid downloading duplicate links.
  • Handle download errors, such as network issues or invalid URLs, gracefully.
  • Provide clear documentation on how to use the code and specify the download directory and format.

Acceptance Criteria:

  • Successful coordination with the infrastructure team to establish the best method for accessing the SQL database.
  • Successfully query the SQL database to retrieve URLs of gameplay videos that meet the specified criteria (reviewed 25+ times and 90%+ positive rating).
  • Validate the retrieved URLs to ensure they are valid gameplay video URLs with at least 95% accuracy.
  • Check for and avoid downloading duplicate links.
  • Save downloaded links to a specified file.
  • Handle download errors, such as network issues or invalid URLs, gracefully, without crashing the program.
  • Clear documentation provided on how to use the code and specify the download file and format.

Notes:

Consider using an ORM (Object-Relational Mapper) library, such as SQLAlchemy, to interact with the SQL database in a more pythonic and maintainable way.

@Joe-TheBro
Copy link
Contributor

Joe-TheBro commented Apr 4, 2023

Ready for review #7

@mattolson93
Copy link
Contributor

merged

@Joe-TheBro Joe-TheBro linked a pull request Apr 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants