Skip to content

Commit 20585fe

Browse files
authored
Merge pull request Python-World#8 from Python-World/master
Fix
2 parents e057e52 + 889db79 commit 20585fe

File tree

117 files changed

+3139
-134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+3139
-134
lines changed

.github/workflows/issue.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on:
2+
issues:
3+
types: [opened]
4+
name: Issues
5+
jobs:
6+
assignAuthor:
7+
name: Assign author to issue
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Assign author to issue
11+
uses: technote-space/assign-author@v1

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[![forthebadge](https://forthebadge.com/images/badges/built-with-swag.svg)](https://forthebadge.com)
55
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
66

7-
# Mini-Projects-Python
7+
# Python-Mini-Projects
88

9-
[![All Contributors](https://img.shields.io/badge/all_contributors-43-blue.svg?style=flat-square)](#contributors-)
9+
[![All Contributors](https://img.shields.io/badge/all_contributors-72-blue.svg?style=flat-square)](#contributors-)
1010
![Issues](https://img.shields.io/github/issues/chavarera/python-mini-projects)
1111
![Pull Requests](https://img.shields.io/github/issues-pr/chavarera/python-mini-projects?)
1212
![Forks](https://img.shields.io/github/forks/chavarera/python-mini-projects)
@@ -46,11 +46,15 @@ If you are new to Github and open source then, visit [here.](https://towardsdata
4646
git pull upstream master
4747
git push
4848
```
49-
- If you run into a **merge conflict**, you have to resolve the conflict. There are a lot of guides online, or you can try this one by [opensource.com](https://opensource.com/article/20/4/git-merge-conflict).
49+
50+
- If you run into a **merge conflict**, you have to resolve the conflict. There are a lot of guides online, or you can try this one by [opensource.com](https://opensource.com/article/20/4/git-merge-conflict).
51+
5052
- Checkout to development branch (*name your branch according to the issue name*).
53+
5154
```basg
5255
git checkout -b <branch-name>
5356
```
57+
5458
- Create a folder in [projects directory](https://github.com/chavarera/python-mini-projects/tree/master/projects) according to issue name.
5559
- Write your code and add to the respective folder in the projects directory, locally.
5660
- Don't forget to add a `README.md` in your folder, according to the [README_TEMPLATE.](https://github.com/chavarera/python-mini-projects/blob/master/README_TEMPLATE.md)
@@ -60,16 +64,19 @@ If you are new to Github and open source then, visit [here.](https://towardsdata
6064
git add -A
6165
git commit -m "<your message>"
6266
```
67+
6368
- Push the code *to your repository*.
69+
6470
```bash
6571
git push origin <branch-name>
6672
```
73+
6774
- Go to the GitHub page of _your fork_, and **make a pull request**:
6875
6976
![pull request image](https://help.github.com/assets/images/help/pull_requests/choose-base-and-compare-branches.png)
7077
7178
Read more about pull requests on the [GitHub help pages](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).
72-
- Now wait, until one of us *reviews your Pull Request*! If there are any conflicts, you will get a notification.
79+
- Now wait, until one of us *reviews your Pull Request*! If there are any conflicts, you will get a notification.
7380
7481
## README Template for scripts
7582
@@ -108,7 +115,7 @@ SR No | Project | Author
108115
23 | [Fetch Wifi Saved Password Windows](https://github.com/chavarera/python-mini-projects/tree/master/projects/Get_wifi_password) | [Mitesh](https://github.com/Mitesh2499)
109116
24 | [Save Screenshot of given Website](https://github.com/chavarera/python-mini-projects/tree/master/projects/Snapshot_of_given_website) | [m044de](https://github.com/m044de/)
110117
25 | [Split files using no of lines](https://github.com/chavarera/python-mini-projects/tree/master/projects/Split_File) | [phileinSophos](https://github.com/phileinSophos/)
111-
26 | [Encode and decode text using key](https://github.com/chavarera/python-mini-projects/tree/master/projects/Create_script_to_encode_and_decode_text) | [Gaodong](https://github.com/xlgd)
118+
26 | [Encrypt and decrypt text](https://github.com/chavarera/python-mini-projects/tree/master/projects/Encrypt_and_decrypt_text) | [Gaodong](https://github.com/xlgd)
112119
27 | [Captures screenshot at regular interval of time](https://github.com/chavarera/python-mini-projects/tree/master/projects/capture_screenshot) | [d33pc](https://github.com/d33pc/)
113120
28 | [Create password hash](https://github.com/chavarera/python-mini-projects/tree/master/projects/Hashing_passwords) | [m044de](https://github.com/m044de/)
114121
29 | [Encrypt file and folders](https://github.com/chavarera/python-mini-projects/tree/master/projects/Create_a_script_to_encrypt_files_and_folder) | [Gaodong](https://github.com/xlgd)
@@ -125,7 +132,7 @@ SR No | Project | Author
125132
40 | [Scrape Youtube video comment](https://github.com/chavarera/python-mini-projects/tree/master/projects/Web_scraping_a_youtube_comment) | [Saicharan67](https://github.com/Saicharan67)
126133
41 | [Website Summerization](https://github.com/chavarera/python-mini-projects/tree/master/projects/Web_page_summation) | [Believe Ohiozua](https://github.com/believeohiozua)
127134
42 | [Text To speech(mp3)](https://github.com/chavarera/python-mini-projects/tree/master/projects/Text_to_speech) | [Sergej Dikun](https://github.com/Serhazor)
128-
43 | [Image format conversio)](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert_Imgs) | [Ramon Ferreira](https://github.com/ramonfsk)
135+
43 | [Image format conversion](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert_Imgs) | [Ramon Ferreira](https://github.com/ramonfsk)
129136
44 | [Save random article from wikipedia](https://github.com/chavarera/python-mini-projects/tree/master/projects/Random_Wikipedia_Article) | [Rakshit Puri](https://github.com/skate1512)
130137
45 | [Check website connectivity](https://github.com/chavarera/python-mini-projects/tree/master/projects/Check_website_connectivity) | [Shiv Thakur](https://github.com/ShivSt)
131138
46 | [Fetch city weather information](https://github.com/chavarera/python-mini-projects/tree/master/projects/Fetch_current_weather) | [Kushal Agrawal](https://github.com/kushal98)
@@ -150,7 +157,7 @@ SR No | Project | Author
150157
65 | [Test Internet Connection](https://github.com/chavarera/python-mini-projects/tree/master/projects/Internet_connection_check) | [Jacob Ogle](https://github.com/Jakeogle94)
151158
66 | [XKCD Comics Downloader](https://github.com/chavarera/python-mini-projects/tree/master/projects/XKCD_downloader)| [Aditya Jetely](https://github.com/AdityaJ7)
152159
67 | [Website Blocker And Unblocker](https://github.com/chavarera/python-mini-projects/tree/master/projects/Website_blocker)| [Phillibob55](https://github.com/Phillibob55)
153-
68 | [Fetch Domain Dns Record ](https://github.com/chavarera/python-mini-projects/tree/master/projects/Dns_record)| [Aditya Jetely](https://github.com/AdityaJ7)
160+
68 | [Fetch Domain Dns Record](https://github.com/chavarera/python-mini-projects/tree/master/projects/Dns_record)| [Aditya Jetely](https://github.com/AdityaJ7)
154161
69 | [Python-Auto-Draw](https://github.com/chavarera/python-mini-projects/tree/master/projects/Python_auto_draw)| [Tushar Nankani](https://github.com/tusharnankani)
155162
70 | [News Website Scraper](https://github.com/chavarera/python-mini-projects/tree/master/projects/News_website_scraper)| [pratik-choudhari](https://github.com/pratik-choudhari)
156163
71 | [Rock Paper Scissors Game](https://github.com/chavarera/python-mini-projects/tree/master/projects/RockPaperScissors_Game)| [Tushar Nankani](https://github.com/tusharnankani)
@@ -179,3 +186,7 @@ SR No | Project | Author
179186
94 | [GeeksforGeeks Article downloader](https://github.com/chavarera/python-mini-projects/tree/master/projects/download%20GeeksForGeeks%20articles)| [Shiv Thakur](https://github.com/ShivSt)
180187
95 | [PDF to Text](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert%20pdf%20to%20text)| [pi1814](https://github.com/pi1814)
181188
96 | [Unstructured Supplemenrary Service Data](https://github.com/chavarera/python-mini-projects/tree/master/projects/Unstructured%20Supplemenrary%20%20Service%20Data)| [ART](https://github.com/Tomyzon1728)
189+
97 | [Duplicate Files remover](https://github.com/chavarera/python-mini-projects/tree/master/projects/Duplicate%20files%20remover)| [Anandha Krishnan Aji](https://github.com/anandhakrishnanaji)
190+
98 | [PNG to ICO converter](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert_png_images_to_ico_format)| [weicheansoo](https://github.com/weicheansoo)
191+
99 | [Find IMDB Ratings](https://github.com/chavarera/python-mini-projects/tree/master/projects/Find_imdb_rating)| [Utkarsh Bajaj](https://github.com/utkarshbajaj)
192+
100 | [Terminal Based Hangman Game](https://github.com/chavarera/python-mini-projects/tree/master/projects/Terminal_Based_Hangman_Game)| [neohboonyee99](https://github.com/neohboonyee99)

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,7 @@ SR No | Project | Author
101101
94 | [GeeksforGeeks Article downloader](https://github.com/chavarera/python-mini-projects/tree/master/projects/download%20GeeksForGeeks%20articles)| [Shiv Thakur](https://github.com/ShivSt)
102102
95 | [PDF to Text](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert%20pdf%20to%20text)| [pi1814](https://github.com/pi1814)
103103
96 | [Unstructured Supplemenrary Service Data](https://github.com/chavarera/python-mini-projects/tree/master/projects/Unstructured%20Supplemenrary%20%20Service%20Data)| [ART](https://github.com/Tomyzon1728)
104+
97 | [Duplicate Files remover](https://github.com/chavarera/python-mini-projects/tree/master/projects/Duplicate%20files%20remover)| [Anandha Krishnan Aji](https://github.com/anandhakrishnanaji)
105+
98 | [PNG to ICO converter](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert_png_images_to_ico_format)| [weicheansoo](https://github.com/weicheansoo)
106+
99 | [Find IMDB Ratings](https://github.com/chavarera/python-mini-projects/tree/master/projects/Find_imdb_rating)| [Utkarsh Bajaj](https://github.com/utkarshbajaj)
107+
100 | [Terminal Based Hangman Game](https://github.com/chavarera/python-mini-projects/tree/master/projects/Terminal_Based_Hangman_Game)| [neohboonyee99](https://github.com/neohboonyee99)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# All Links from given Webpage
2+
3+
This script retrieves all links from a given Webpage and saves them as a tct file
4+
5+
### Prerequisites
6+
Required Modules
7+
- BeautifulSoup4
8+
- requests
9+
10+
to install:
11+
```
12+
$ pip install -r requirements.txt
13+
```
14+
15+
### How to run the script
16+
``` bash
17+
$ python get_links.py
18+
```
19+
You will then be asked which webpage you would like to analyze.
20+
After that the extracted links will be saved as an array in `myLinks.txt`.
21+
22+
23+
## *Author Name*
24+
Kai Reichart
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
beautifulsoup4==4.9.2
2+
requests==2.24.0
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Battery Notificator
2+
3+
This python script gives you a notification about your battery percentage of the device.
4+
5+
## Pre-requisites:
6+
7+
You will need to install python on your machine. You can download python from the python.org and install it.
8+
And a few other python package that you need to install are as:
9+
10+
1. psutil
11+
> pip install psutil
12+
13+
2. pynotifier
14+
> pip install py-notifier
15+
16+
3. win10toast
17+
> pip install win10toast
18+
19+
## How to run the Script:
20+
python battery.py
21+
22+
## Authon Name:
23+
Bharat Gupta

projects/Battery_notification/battery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
percent = battery.percent
77

88
if percent >= 30:
9-
10-
# pip install pynotifier
9+
10+
# pip install py-notifier
1111
# pip install win10toast
1212
from pynotifier import Notification
1313

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
psutil==5.7.2
2-
pynotifier==0.1
2+
py-notifier==0.1
33
win10toast==0.9

projects/Calculate_age/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Calculate Your Age!
2+
<!--Remove the below lines and add yours -->
3+
This script prints your age in three different ways :
4+
1. Years
5+
2. Months
6+
3. Days
7+
8+
9+
## Prerequisites
10+
<!--Remove the below lines and add yours -->
11+
You only need Python to run this script. You can visit [here](https://www.python.org/downloads/) to download Python.
12+
13+
14+
## How to run the script
15+
<!--Remove the below lines and add yours -->
16+
Running the script is really simple! Just open a terminal in the folder where your script is located and run the following command :
17+
18+
`python calculate.py`
19+
20+
21+
## Sample use of the script
22+
<!--Remove the below lines and add yours -->
23+
```
24+
$ python calculate.py
25+
input your name: XYZ
26+
input your age: 33
27+
XYZ's age is 33 years or 406 months or 12328 days
28+
```
29+
30+
## *Author Name*
31+
<!--Remove the below lines and add yours -->
32+
random1001guy
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Check Website Connectivity
2+
3+
This directory contains a simple tool to check connectivity to a number of web sites.
4+
5+
The input file `websites.txt` should contain web site URLs, one per line.
6+
7+
The output file `website_status.csv` contains a two-column report with
8+
the URL of each checked site and its status.
9+
The script simply checks whether the web server returns a 200 status code.
10+
11+
The output file will be overwritten each time you run the tool.
12+
13+
14+
## Prerequisites
15+
16+
This project uses the third-party library
17+
[requests](https://requests.readthedocs.io/)
18+
as well as the `csv` module from the Python standard library.
19+
20+
21+
## How to run the Script
22+
23+
To run this script, type
24+
25+
```
26+
python check_connectivity.py
27+
```
28+
in the directory where you have checked out these files.
29+
(If you have an IDE which lets you run Python files,
30+
and prefer to use that instead,
31+
make sure you configure it to set the working directory to
32+
the one which contains the input file.)
33+
34+
35+
## Development ideas
36+
37+
The CSV should perhaps contain a date stamp, too.
38+
39+
Perhaps add the `logging` library and optionally print progress information.

0 commit comments

Comments
 (0)