Skip to content

Commit 43b427b

Browse files
committed
Fixed folder names and added README in them
1 parent 6ac0891 commit 43b427b

220 files changed

Lines changed: 941 additions & 942 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 80 additions & 80 deletions

docs/README.md

Lines changed: 82 additions & 82 deletions
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import requests as rq
2-
from bs4 import BeautifulSoup
3-
4-
url = input("Enter Link: ")
5-
if ("https" or "http") in url:
6-
data = rq.get(url)
7-
else:
8-
data = rq.get("https://" + url)
9-
soup = BeautifulSoup(data.text, "html.parser")
10-
links = []
11-
for link in soup.find_all("a"):
12-
links.append(link.get("href"))
13-
14-
# Writing the output to a file (myLinks.txt) instead of to stdout
15-
# You can change 'a' to 'w' to overwrite the file each time
16-
with open("myLinks.txt", 'a') as saved:
17-
print(links[:10], file=saved)
1+
import requests as rq
2+
from bs4 import BeautifulSoup
3+
4+
url = input("Enter Link: ")
5+
if ("https" or "http") in url:
6+
data = rq.get(url)
7+
else:
8+
data = rq.get("https://" + url)
9+
soup = BeautifulSoup(data.text, "html.parser")
10+
links = []
11+
for link in soup.find_all("a"):
12+
links.append(link.get("href"))
13+
14+
# Writing the output to a file (myLinks.txt) instead of to stdout
15+
# You can change 'a' to 'w' to overwrite the file each time
16+
with open("myLinks.txt", 'a') as saved:
17+
print(links[:10], file=saved)

projects/Battery_notification/README.md

0 commit comments

Comments
 (0)