Skip to content
Merged
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
362 changes: 336 additions & 26 deletions about/index.html

Large diffs are not rendered by default.

98 changes: 98 additions & 0 deletions create_profiles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import requests
from bs4 import BeautifulSoup
import jinja2


def render_jinja_html(template_loc, file_name, **context):
return jinja2.Environment(
loader=jinja2.FileSystemLoader(template_loc+'/')
).get_template(file_name).render(context)


def pinned_repo_data(soup):
pinned_repositories = []

desired_tags = soup.findAll("li", {"class": "pinned-repo-item"})

for tag in desired_tags:
repo_data = {}
repo_data["name"] = (tag.find("span", {"class": "repo"})).text

div = (tag.find("span", {"class": "d-block"}))
repo_data["url"] = (div.find("a", {"class": "text-bold"}))["href"]
repo_data["url"] = "https://github.com" + repo_data["url"]

desired_tag = (tag.find("p", {"class": "pinned-repo-desc"}))
repo_data["desc"] = desired_tag.text
repo_data["description"] = repo_data["desc"].strip()

pinned_repositories.append(repo_data)

return (pinned_repositories)


def gh_email(soup):
return(input('Enter the respective email-id : '))


def gh_bio(soup):
div = soup.find("div", {"class": "user-profile-bio"})
if div is None:
return ''

return div.find("div").text


def blog_link(soup, gh_link):
blog_tag = (soup.find("a", {"class": "u-url"}))
blog_link = ''

if blog_tag is None:
blog_link = gh_link
else:
blog_link = blog_tag['href']

return(blog_link)


def create_page():
username = input("Enter github username : ")
r = requests.get("https://github.com/" + username)
soup = BeautifulSoup(r.text, 'html.parser')

if r.status_code == 400:
print("Wrong username")
else:
member_info = {}
member_info['name'] = username
img = "http://avatars.githubusercontent.com/" + username
member_info['image'] = img
member_info['gh_link'] = 'https://github.com/' + username
full_name = soup.find("span", {"class": "vcard-fullname"}).text
member_info['full_name'] = full_name
member_info['blog'] = blog_link(soup, member_info['gh_link'])
member_info['bio'] = gh_bio(soup)
member_info['email'] = gh_email(soup)
member_info['position'] = 'Core Team Member' # input("Enter the position in the KOSS")
member_info['pinned_repos'] = pinned_repo_data(soup)

print(member_info)

x = render_jinja_html('templates', 'template.tmpl',
name = member_info['name'],
pinned_repos = member_info['pinned_repos'],
image = member_info['image'],
gh_link = member_info['gh_link'],
bio = member_info['bio'],
full_name = member_info['full_name'],
email = member_info['email'],
blog = member_info['blog'],
position = member_info['position']
)

with open("profiles/" + username + ".html", "w") as f:
f.write(x)


if __name__ == '__main__':
create_page()
38 changes: 28 additions & 10 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"mayank-kgp",
"pr4nay",
"Shorit",
"nishnik"
],
"Executive": [
"nishnik",
"nitinkgp23",
"DefCon-007",
"madan96",
Expand All @@ -26,20 +24,40 @@
"pratham-pc",
"parikshit-soni"
],
"Core Team Member": [
"Executive": [
"ankita132",
"rava-dosa",
"aribis369",
"ashishkg0022",
"obitors",
"djbarnwal",
"djbarnwal",
"dibyadas",
"harishnandan",
"tibrewalpratik17",
"vernwalrahul",
"sangeet259",
"americast",
"shaildaswani",
"sipah00"
"americast"
],
"Core Team Member": [
"berserker1",
"xypnox",
"anushkashukla",
"arnav-t",
"Ayushk4",
"Gaurav314",
"gurjot273",
"thelethalcode",
"mansisinha",
"themousepotato",
"nikhilch23",
"PetalsOnWind",
"piyush27ranjan",
"krritik",
"sanketkumarsinghiitkgp",
"thealphadollar",
"shreyas-kowshik",
"sshevya",
"taapas1128",
"vedprakash2017",
"vivekrj0",
"yashrsharma44"
]
}
10 changes: 6 additions & 4 deletions events/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
<div class="hn2">Kharagpur Winter of Code.</div>
</div>
<br><br><br><br>
<h2 style="float: left;" class="points">December 1st to January 6th</h2>
<h2 style="float: left;" class="points">December 5th 2018 to January 11th 2019</h2>
<br><br><br>
<h2 style="float: left;" class="points">Contribute online, from where you are.</h2>
<h2 style="float: left;" class="points">Contribute online, from wherever you are.</h2>
<br><br><br>
<h2 style="float: left;" class="points">54+ Projects with 930+ Participants.</h2>
<h2 style="float: left;" class="points">100+ Projects with 1800+ Participants.</h2>
</div>


Expand All @@ -60,7 +60,7 @@ <h1 class="ui header" style="font-size: 3.5rem">About KWOC</h1>
for students who are new to open source software development. The program will not only help students to get involved in open source, but will also prep them for many open source summer programs, Google Summer of Code being one of them. KWoC is open to mentors and students across the country.<br><br></p>

<a href="https://kwoc.kossiitkgp.in/#resources">
<div class="ui huge primary button" style="margin-top:40px;">Checkout the Resources
<div class="ui huge primary button" style="margin-top:40px;">Checkout the Resources
<i class="right arrow icon"></i></div>
</div>
</a>
Expand Down Expand Up @@ -105,6 +105,8 @@ <h1 class="ui header" style="font-size: 3.5rem">About KWOC</h1>

</div>
</div> -->


<div class="container">
<div style="float: left" >
<div class="sp-name">
Expand Down
12 changes: 7 additions & 5 deletions events/git.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
<div class="page-name" style="padding-top:10px;">Git and Github Workshop</div>
</div>
<br><br><br><br>
<h2 class="first points">30th November, 2016</h2>
<h2 class="first points">7th October, 2018</h2>
<br><br><br>
<h2 class="points">workshop to get aquainted with git</h2>
<h2 class="points">Workshop to get aquainted with git and basic Workflow for open source contribution</h2>
<br><br><br>
</div>

Expand All @@ -54,9 +54,11 @@ <h2 class="points">workshop to get aquainted with git</h2>
<div class="row">
<div class="eight wide column">
<h1 class="ui header" style="font-size: 3.5rem">Event Overview</h1>
<p>We conducted a workshop on Git and Github on 30th November 2016
and it was a fantastic success with a huge audience. Hope to see
the PR's which you learnt getting merged soon!
<p>We multiple workshops on Git and Github round the year, usually one
in fall and one during open source summit. The last workshop was conducted
on 29th November, 2019 and it was a fantastic success with a huge audience.
Hope to see the PR's which you learnt getting merged soon! Here are some
pics from the very first git workshop that we conducted.
</p>
</div>
<div class="eight wide right floated column">
Expand Down
20 changes: 9 additions & 11 deletions events/linux.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
<div class="item1"><img src="../assets/images/kosslogo.png"></div>
<div class="ui container" id="desc" style="height: 465px;">
<div class="ui text container">
<div class="page-name" style="padding-top:10px;">GNU Linux Install Fest</div>
<div class="page-name" style="padding-top:10px;">Ubuntu Installation Fest</div>
</div>
<br><br><br><br>
<h2 class="first points">September 2016</h2>
<h2 class="first points">2 October 2018</h2>
<br><br><br>
<h2 class="points">Linux install fest in association with Metakgp and IEEE </h2>
<h2 class="points">Ubuntu installation fest by Kharagpur Open Source Society </h2>
<br><br><br>
</div>

Expand All @@ -54,14 +54,12 @@ <h2 class="points">Linux install fest in association with Metakgp and IEEE </h2>
<div class="row">
<div class="eight wide column">
<h1 class="ui header" style="font-size: 3.5rem">Event Overview</h1>
<p>KOSS in association with Metakgp and IEEE Section IIT Kharagpur
conducted a Linux Install Fest, open to everyone in IIT Kharagpur,
for those who would like to get Linux as either Primary or Secondary
Operating system alongside windows.<br><br>
The event was taking place four years later after a similar event
was conducted in IIT Kharagpur. Since, Linux is always helpful for
almost all the workshops KOSS conducts, hence it was a primary
need for it being the first event of the year.<br><br>
<p>KOSS conducts Ubuntu Installation Fest every year in the Autumn semester,
open to everyone in IIT Kharagpur, for those who would like to get a Linux based
system as either Primary or Secondary Operating system alongside windows.<br><br>
Since, Linux is always helpful for almost all the workshops by KOSS and preferred
operating system for programming, hence it was a primary
need for it being among the first events of the year.<br><br>
The relevant links are given below:<br><br>
<a href="https://wiki.metakgp.org/w/How_to_install_Ubuntu_as_Dual_Boot">
Dual boot instructions</a></p>
Expand Down
14 changes: 7 additions & 7 deletions header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ function header(location)
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="item" href="../',team_loc,'">About Us</a><a class="item" href="../',events_loc,'">Events</a><a class="item" href="../',projects_loc,'">Projects</a><a class="active item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="home inv right"){
string=
'<a class="ui inverted button" href="./'.concat(terminal_loc,'">Terminal</a><a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>');}
else if (location==="home right"){
/*'<a class="ui inverted button" href="./'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp*/'<a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>'/*)*/;}
else if (location==="home right"){
string=
'<a class="ui button" href="./'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp<a class="ui button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>');}
/*'<a class="ui button" href="./'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp*/'<a class="ui button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>'/*)*/;}
else if (location==="inv right"){
string=
'<a class="ui inverted button" href="../'.concat(terminal_loc,'">Terminal</a><a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>');}
/*'<a class="ui inverted button" href="../'.concat(terminal_loc,'">Terminal</a>*/'<a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>'/*)*/;}
else if (location==="right"){
string=
'<a class="ui button" href="../'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp<a class="ui button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>');}
/*'<a class="ui button" href="../'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp*/'<a class="ui button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>'/*)*/;}
else if (location==="term inv right"){
string=
'<a class="ui inverted secondary button" href="./'.concat(terminal_loc,'">Terminal</a><a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>');}
/*'<a class="ui inverted secondary button" href="./'.concat(terminal_loc,'">Terminal</a>*/'<a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>'/*)*/;}
else if (location==="term right"){
string=
'<a class="ui primary button" href="./'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp<a class="ui button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>');}
/*'<a class="ui primary button" href="./'.concat(terminal_loc,'">Terminal</a>&nbsp&nbsp&nbsp*/'<a class="ui button" target="_blank" href="https://blog.kossiitkgp.in">Blog</a>'/*)*/;}

document.write(string);
}
24 changes: 23 additions & 1 deletion members.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,26 @@ vernwalrahul
americast
shaildaswani
sipah00
sangeet259
sangeet259
berserker1
xypnox
anushkashukla
arnav-t
Ayushk4
Gaurav314
gurjot273
thelethalcode
mansisinha
themousepotato
nikhilch23
PetalsOnWind
piyush27ranjan
krritik
sanketkumarsinghiitkgp
thealphadollar
shreyas-kowshik
sshevya
taapas1128
vedprakash2017
vivekrj0
yashrsharma44
Loading