Skip to main content

Automate-Images + Videos-download

Introduction :

Data collection is one of the important steps in Data analysis , Machine learning and Deep learning. It is the process of gathering information of our interest, in our case it's the images of any type we want to gather. Without data, we can't model our problem and do analysis of it.

Objective :

👉 Automate the collection and building of images using Google API's for search and videos using Youtube API's.
👉 Option to send mails to anyone containing collected datasets as attachment.

Motivation :

This is a part of project - IV (Task-I) made for UCS633 - Data analytics and visualization at TIET.
@Author : Sourav Kumar
@Roll no. : 101883068

Getting credentials for Google API and Youtube API:

For Google image API For Youtube API

Getting Started Locally :

  • After getting the credentials , we can now run the script for automation.
  • Firstly download all the files on your system using cmd (terminal) or git bash :
    git clone https://github.com/souravs17031999/AUTOMATE-DATA-PIPELINE

With Tkinter GUI :

For IMAGES :

  • Move to the directory where script is downloaded.
  • Now run the script in following way :
    python data_image_automation.py
    and arguments can be passed from interactive GUI.

For VIDEOS :

  • Move to the directory where script is downloaded.
  • Now run the script in following way :
    python data_video_automation.py
    and arguments can be passed from interactive GUI.
    Note : Two important args :

Client secrets file path: Give absolute path.
Chrome driver path : Give absolute path with .exe extension.

Output :

Some samples of images : output
output
output
output
output

Limitations and Scope for future work:

There are few limitations :

  • Currently Google and Youtube allows 100 requests in one API call and so the script is able to download in total 100API's in one go but this behaviour can be changed from the script by calling it multiple times after tweaking some parameters which controls the after and before id's of returned images and videos and can be checked in their API documentation.
  • [For Images] Considering big file sizes for sending as mails, i have resized , gray-scaled and then zipped the files and upload as attachment.
    This behaviour can be changed from the script by disabling some of the functions passing a optional parameter.
  • [For videos] Considering big file sizes for sending as mails, i have compressed the file sizes and reduced the duration of videos.
    This behaviour can be easily manipulated in the script itself.
  • Also, mail can be only sent for GMAIL users as of now, this can also be changed by manipulating the Ports of all email servers and controlling their behaviours in the script.

Metadata

Release files for images-automate-python-souravdlboy 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for images-automate-python-souravdlboy 1.2
File Size Uploaded Provenance Actions
images-automate-python-souravdlboy-1.2.tar.gz 2.8 kB Without provenance Details for images-automate-python-souravdlboy-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for images-automate-python-souravdlboy 1.2
File Interpreter ABI Platform Actions
images_automate_python_souravdlboy-1.2-py3-none-any.whl Python 3 none any Details for images_automate_python_souravdlboy-1.2-py3-none-any.whl

Total release size: 6.5 kB

Release files / images-automate-python-souravdlboy-1.2.tar.gz

Download URL images-automate-python-souravdlboy-1.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
859237b7b12e8441548f314c2fa30043d659d520598e0b4cbdd369debcbb858c
BLAKE2b-256 checksum
How to use checksums
91d3b0c032b5777d993767b7e2326dede6fa997c59567a1e8611155b785e4b2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0b5

Release files / images_automate_python_souravdlboy-1.2-py3-none-any.whl

Download URL images_automate_python_souravdlboy-1.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9206eb4df5dae1c0d91d9942efa3db0ce4bae5c657596af5e8eb3e9c6b15a9b8
BLAKE2b-256 checksum
How to use checksums
28336c6806a0988469b13581377f98a602e1638a6d54d0787322d17fb90c92be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.0b5

Security for images-automate-python-souravdlboy 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page