File tree 2 files changed +2840
-5
lines changed
2 files changed +2840
-5
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -11,10 +11,23 @@ def CommonOrgs():
11
11
CommonOrgsl .append (s )
12
12
print (CommonOrgsl )
13
13
14
- ##def SummerGSoCCommon():
15
-
16
14
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 )
18
31
19
32
20
33
def CheckOrg ():
@@ -65,8 +78,21 @@ def CheckOrg():
65
78
winterOrgs .append ((organisation [w ].string ).lower ())
66
79
67
80
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 ()
68
89
90
+ GSoC_organisation = soup_2 .findAll ("div" , {"class" :"organization-card__name font-black-54" })
69
91
92
+ GSoC_orgs = []
93
+
94
+ for i in range (len (GSoC_organisation )):
95
+ GSoC_orgs .append ((GSoC_organisation [i ].string ).lower ())
70
96
71
97
#Driver part
72
98
@@ -95,5 +121,3 @@ def CheckOrg():
95
121
elif n == 6 :
96
122
WinterOrgsI ()
97
123
98
-
99
-
You can’t perform that action at this time.
0 commit comments