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
2 changes: 2 additions & 0 deletions Vasant.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
System,out.print("hey peanuts");
system.out.print("what is the weather today");
17 changes: 17 additions & 0 deletions bueautiful soup wikipedia.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import urllib.request,urllib.parse,urllib.error
import ssl
from bs4 import BeautifulSoup
fh=urllib.request.urlopen("https://en.wikipedia.org/wiki/Illuminati").read()
soup=BeautifulSoup(fh,'html.parser')


#aganist the ssl certificate error
ctx=ssl.create_default_context
ctx.check_hostname=False
ctx.verify_mode=ssl.CERT_NONE
#ssl????????????????????????/


tags=soup('a')
for tag in tags:
print(tag.get('href',None))