Skip to content

Commit fb85af6

Browse files
committed
GSoC code added
1 parent 984a1a5 commit fb85af6

File tree

2 files changed

+2840
-5
lines changed

2 files changed

+2840
-5
lines changed

Plan for Outreachy/gsoc.html

+2,811
Large diffs are not rendered by default.

Plan for Outreachy/outreachy.py

+29-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,23 @@ def CommonOrgs():
1111
CommonOrgsl.append(s)
1212
print(CommonOrgsl)
1313

14-
##def SummerGSoCCommon():
15-
1614

17-
##def WinterGsocCommon():
15+
def SummerGSoCCommon():
16+
SummerGSoCCommonl = []
17+
for s in summerOrgs:
18+
for g in GSoC_orgs:
19+
if s == g:
20+
SummerGSoCCommonl.append(s)
21+
print(SummerGSoCCommonl)
22+
23+
24+
def WinterGsocCommon():
25+
WinterGsocCommonl = []
26+
for w in winterOrgs:
27+
for g in GSoC_orgs:
28+
if w == g:
29+
WinterGsocCommonl.append(w)
30+
print(WinterGsocCommonl)
1831

1932

2033
def CheckOrg():
@@ -65,8 +78,21 @@ def CheckOrg():
6578
winterOrgs.append((organisation[w].string).lower())
6679

6780

81+
##GSoC orgs parser
82+
83+
f = open('gsoc.html')
84+
html_content_2 = f
85+
86+
soup_2 = BeautifulSoup(html_content_2, "html.parser")
87+
88+
f.close()
6889

90+
GSoC_organisation = soup_2.findAll("div", {"class" :"organization-card__name font-black-54"})
6991

92+
GSoC_orgs = []
93+
94+
for i in range(len(GSoC_organisation)):
95+
GSoC_orgs.append((GSoC_organisation[i].string).lower())
7096

7197
#Driver part
7298

@@ -95,5 +121,3 @@ def CheckOrg():
95121
elif n == 6:
96122
WinterOrgsI()
97123

98-
99-

0 commit comments

Comments
 (0)