Skip to content
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
10 changes: 10 additions & 0 deletions Contribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# To add a new functionality/Remove a bug/Maintain the project
### Fork the project using the button above.
### Make the required changes
### Send a Pull Request
If nothing is broke, I will definitely merge it in 24 hrs.
### Drop your email so that I can share a Thank You as well and if I really like your PR then
## I will share a swag earning opportunity as well. (Tshirts + Stickers)

# Notice a Bug
Just add a issue and submit a PR if you can solve it. For submitting a PR, see steps above.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 The-Building-Laboratory

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Domain-Explorer
Input any URL and all the links on web-page, types of domains, their count and sizeof web-page will be revealed.
Input URL to any web-page and all the links onthat web-page, types of domains present, their count(total links) and sizeof web-page will be revealed magically.
## See it Working!
Just download the script(.py) file and run it in your favorite IDE or terminal supporting Python 3.x. To download python visit https://www.python.org/downloads/ and then run the script

Expand All @@ -8,5 +8,6 @@ Just download the script(.py) file and run it in your favorite IDE or terminal s

### Screenshot 2
![Screenshot2](task_opengenus-2.jpg)
Licensed Under: https://prankshaw.mit-license.org/


4 changes: 2 additions & 2 deletions opengenus_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from urllib.parse import urlparse
from bs4 import BeautifulSoup

url= input( "Enter the Url : ") #Input the URL
url= input( "Enter the Url to be Explored : ") #Input the URL
page = urllib.request.urlopen(url)
print("Total Size of web page is: " , len(page.read()), "bytes") #Outputting size of web page in bytes

Expand All @@ -16,7 +16,7 @@
domains.append('{uri.scheme}://{uri.netloc}/'.format(uri=parsed_uri)) #Appending parse url to list named "Domains"

print("The links present are:")
print(links) # Printing all links
print(links) #Printing all links
print ("Total number of links in web page are : ", len(links) , "Links") #Printing the total number of links
count_dict = {i:domains.count(i) for i in domains}
for c in count_dict:
Expand Down