A python package that helps you to perform sevaral online tasks
Project description
OnlineWorks
This is a simple python module for performing many online tasks Quick Start Guide:
import OnlineTasks # Not OnlineWorks
# 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']
Whats new in the latest release, 0.0.3?
# 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')
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.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for OnlineWorks-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb61b66bc050b5db40238c88d474122c237f8586c037499282768b6eadec355 |
|
MD5 | 9e19b34929ddffd48bc15f471f7b2835 |
|
BLAKE2b-256 | 9a4cc0837ea4c45e4ddf70f55a374a1bf53ac6827b8dddc56501797c015d024a |