diff --git a/projects/Get_Html/README.md b/projects/Get_Html/README.md new file mode 100644 index 0000000..81f57a7 --- /dev/null +++ b/projects/Get_Html/README.md @@ -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.
+This programe allows you to get the html code from any website.
+Click here to read more about beautifulsoup.
+Click here 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 here 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.
+If you find any issue just put it in the repository issue section, thank!

+.سبحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، أَشْهَدُ أَنْ لا إِلهَ إِلأَ انْتَ أَسْتَغْفِرُكَ وَأَتْوبُ إِلَيْ diff --git a/projects/Get_Html/gethtml.py b/projects/Get_Html/gethtml.py new file mode 100644 index 0000000..057aa5d --- /dev/null +++ b/projects/Get_Html/gethtml.py @@ -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 \ No newline at end of file diff --git a/projects/Get_Html/screenshots/gh1.png b/projects/Get_Html/screenshots/gh1.png new file mode 100644 index 0000000..48849c8 Binary files /dev/null and b/projects/Get_Html/screenshots/gh1.png differ diff --git a/projects/Get_Html/screenshots/gh2.png b/projects/Get_Html/screenshots/gh2.png new file mode 100644 index 0000000..1292076 Binary files /dev/null and b/projects/Get_Html/screenshots/gh2.png differ diff --git a/projects/Get_Html/screenshots/gh3.png b/projects/Get_Html/screenshots/gh3.png new file mode 100644 index 0000000..f953fc7 Binary files /dev/null and b/projects/Get_Html/screenshots/gh3.png differ diff --git a/projects/Get_Html/screenshots/gh4.png b/projects/Get_Html/screenshots/gh4.png new file mode 100644 index 0000000..5da5aae Binary files /dev/null and b/projects/Get_Html/screenshots/gh4.png differ diff --git a/projects/url shorter/urlshorter.py b/projects/url shorter/urlshorter.py new file mode 100644 index 0000000..6942a00 --- /dev/null +++ b/projects/url shorter/urlshorter.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +"""urlshorter.ipynb + +Automatically generated by Colaboratory. + +Original file is located at + https://colab.research.google.com/drive/1m7NLz2p4fVG4uoroAubd20rVaDApZKzE +""" + +import pyshorteners +while True: + url=input("Please enter the url") + + s=pyshorteners.Shortener() + print(" Your shortened Url is ->", s.tinyurl.short(url)) \ No newline at end of file