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

gallon to litre desktop app #85

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions projects/Get_Html/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Get The HTML Code

![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)

#100daysofcode This simple programe written in python with beautifulsoup module and the requests library.<br>
This programe allows you to get the html code from any website.<br>
Click <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/"> here </a> to read more about beautifulsoup.<br>
Click <a href="https://requests.readthedocs.io/en/master/"> here </a> to read more about requests.

## Features :dart:
* [x] Free & Open Source
* [x] Very Easy to use

## Screenshot
Home | Paste The Link
:---------------------: | :-----------------:
![screenshoot](screenshots/gh1.png) | ![screenshoot](screenshots/gh2.png)
Get The Code | Simple Question
![screenshoot](screenshots/gh3.png) | ![screenshoot](screenshots/gh4.png)

## Requirements
* python
* beautifulsoup
* requests

## How To Use It
1. Download Python from this link: https://www.python.org/downloads/
2. Install the packeges, write in your command (cmd):
```bash
pip install beautifulsoup4
pip install requests
```
3. Install this repository, click <a href="https://github.com/mohamedyanis/covid19-tracker2/archive/master.zip"> here </a> to install it.
4. Extract the folder
5. Run the ```gethtml.py``` file

## Contributing 💡
If you want to contribute to this project and make it better with new ideas, your pull request is very welcomed.<br>
If you find any issue just put it in the repository issue section, thank!<br><br>
.سبحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، أَشْهَدُ أَنْ لا إِلهَ إِلأَ انْتَ أَسْتَغْفِرُكَ وَأَتْوبُ إِلَيْ
14 changes: 14 additions & 0 deletions projects/Get_Html/gethtml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from bs4 import BeautifulSoup
import requests
c = True
while c:
url =input('Enter The Url Here: ')
page = requests.get(url)
soup = BeautifulSoup(page.content, 'html.parser')
print(soup.prettify())
cc = input('''

Do You Want To Scrap Another WebSite (Y/N): ''')
if cc.lower() == 'n':
print('Thanks..!')
c = False
Binary file added projects/Get_Html/screenshots/gh1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/Get_Html/screenshots/gh2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/Get_Html/screenshots/gh3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/Get_Html/screenshots/gh4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions your_projects/gallons2litres/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Gallons To Litres Conventer
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)

This is a simple desktop app written in Python With Tkinter module.<br>
Click <a href="https://docs.python.org/3/library/tk.html"> here</a> to read more about **tkinter** module.<br>

## Features :dart:
* [x] Free & Open Source
* [x] Very Easy to use
* [x] No Internet connection required

## Screenshots
Home | Painting
:---------------------:|:------------------:
![screenshoot](screenshots/g2l1.png) | ![screenshoot](screenshots/g2l2.png)

## Requirements
* python
* tkinter module

## How To Use It
1. Download Python from this link: https://www.python.org/downloads/
2. Install the packeges, write in your command (cmd):
```bash
pip install tkinter
```
3. Install this repository, click <a href="https://github.com/mohamedyanis/paint-app/archive/master.zip"> here </a> to install it.
4. Extract the folder.
5. Run the ```paint_app.py``` file.

## :information_source: Important!
This app is for beginners, you can change the mathematical process, use it as a conventer for everything. Just change the The relation between the two units you want to convert. <br>
Change the relation in the line 7: <br>
```python
var3 = var2 * 3.785
```

## Contributing 💡
If you want to contribute to this project and make it better with new ideas, your pull request is very welcomed.<br>
If you find any issue just put it in the repository issue section, thanks!<br><br>
.سبحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، أَشْهَدُ أَنْ لا إِلهَ إِلأَ انْتَ أَسْتَغْفِرُكَ وَأَتْوبُ إِلَيْكَ

23 changes: 23 additions & 0 deletions your_projects/gallons2litres/gallons2litres.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from tkinter import *

def mcal():
var2 = var1.get()

#here you can change the operation or the mathematical process
var3 = var2 * 3.785

entry2.insert(0, var3)

root = Tk()
root.title("Yanis's Converter")
var1 = IntVar()
label_font = "arial",14,"bold"
Label(root,text = "Gallons", padx = 25, font=(label_font)).grid(row=0,sticky=W)
entry1 = Entry(root, width=25 , textvariable=var1)
entry1.grid(row=0,column=1)
Label(root,text="Litres", padx=25, font=(label_font)).grid(row=1,sticky=W)
entry2 = Entry(root, width=25)
entry2.grid(row=1,column=1)
Button(root,text="calculate", font=(label_font), command = mcal).grid(row=2,column=1)

root.mainloop()
Binary file added your_projects/gallons2litres/screenshots/g2l1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added your_projects/gallons2litres/screenshots/g2l2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.