Skip to main content

A simple python pacakage that helps you to perform sevaral online tasks and Computer Automations.

Project description

OnlineWorks

This is a simple python module for performing many online tasks and Computer Automations  

Installation

To install this libarary, you have to run this command on your cmd or powershell

pip install OnlineWorks

Thats it for installation :)

Quick Start Guide

import OnlineTasks # Not OnlineWorks
import OnlineTasks.Nasa as Nasa
import OnlineTasks.Whatsapp as whatsapp

# This code will play a video on youtube

tube = OnlineTasks.Youtube()
tube.load('Carryminati')
tube.play()

# To get your public ip address
ip = OnlineTasks.get_ip_address()
print(ip)

# To open your mobile camera
# Follow the steps given below to open your mobile camera

# Step 1: Download and install the ip webcam app from the play store from your mobile
# Step 2: Open the ip webcam app, and then click on start server
# Step 3: Now, you will get an IPV4, so, write that on the argument 'ipwebcam_ip'
# Step 4: Call this function and then run
# Step 5: Then run and you will se your mobile camera on your computer!

OnlineTasks.open_mobile_camera('your-ip-webcam-ip-address')

# To get the title of a website
title = OnlineTasks.fetch_title('https://youtube.com')
print(title)

# To search anything in google

# It will open the browser and automatically search on google!
# Also, it will return info about the topic
# If there is not adat avaliable
# It will return None.

result = OnlineTasks.search('Carryminati')
print(result)

# To get corona info according to the country
Data = OnlineTasks.get_corona_info(Country='india')
deaths = Data['deaths']
cases = Data['cases']
recovered = Data['recovered']

# You can send email
# Disable the less secure apps in your gmail

OnlineTasks.SendEmail(
    email='your-email@example.com', 
    password='your-password', 
    to='whom-you-want-to-send-email@example.com', 
    subject='Example Subject', 
    body='Example Message'
)

# To open any place in google maps!
OnlineTasks.OpenPlaceInGoogleMaps(Place='india')

# To get your city, state and country where you are living!

# Step 1: Register in https://ipgeolocation.abstractapi.com
# Step 2: Get your api key
# Step 3: Give your api key in the parameter 'api_key'

OnlineTasks.get_location(api_key='your-api-key')

# You can get info of a solar body
Data = Nasa.SolarBodies('earth') # Returns the information about a solar body
mass = Data['mass'] # The mass of earth
gravity = Data['gravity'] # The gravity of earth
velocity = Data['escape_velocity'] # The escape velocity of earth
density = Data['density'] # The desnsity of earth
print(mass, gravity, velocity, density)

# To send a whatsapp message to a number
# The 'time_hour' parameter is that on which hour you want to send the message, it must be int
# The 'time_min' parameter is that on which minute you want to send the message, it must be int
# It will open up your browser and automaticallly send the message, so you need to be logged in to whatsapp web.
# If you minimize the browser, this function will not work!

whatsapp.send_whatsapp_message('phone_number_you_want_to_send_to_with_country_code', 'Your message here', time_hour=12, time_min=59)

# You can send a whatsapp message to group!
whatsapp.send_whatsapp_message_to_group(
    group_id='type-the-group's-id-here',
    message='Your message here',
    time_hour=12, # The hour you want to send the message
    time_min=34 # The minute you want to send the message
)

Whats new in the latest release, 0.0.6? In this latest realese, you can perform OnlineTasks and as well as Compueter Automations!

import ComputerAutomation # Comes with this library
ComputerAutomation.switch_window() # It will switch the window automatically!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OnlineWorks-0.0.6.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

OnlineWorks-0.0.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file OnlineWorks-0.0.6.tar.gz.

File metadata

  • Download URL: OnlineWorks-0.0.6.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.21.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.4.4

File hashes

Hashes for OnlineWorks-0.0.6.tar.gz
Algorithm Hash digest
SHA256 dbd8c6e5dcc8a8900a40d39bf2aeab63e17185a82fad04245e656f75595ed08f
MD5 7a4578bbd3b63026f2a558521764f6bb
BLAKE2b-256 44a239e487b822627d167a015c6fbfb4aea56229ca0ca95ccbbc0842115a8bb4

See more details on using hashes here.

File details

Details for the file OnlineWorks-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: OnlineWorks-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.21.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.4.4

File hashes

Hashes for OnlineWorks-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1182503383441a988262cfbd4348e7e7e83670fcd8996cd0da070f421bd79590
MD5 afb725ba9221d32d1155500f71bfc355
BLAKE2b-256 1b1eb076ed60b239b39bb92262ec546b0130a5aac684578b7fdc7d82839c25e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page