Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiro47 authored and codetheweb committed May 3, 2020
1 parent 9552632 commit b9cc804
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions banwebScrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ def main():
files = File_Utils()
files.write_to_csv(Data_Gathering().get_course_object_list(),
"./writer.csv")
# global total_bytes_transfered
# print("Bytes wasted: {}".format(
# total_bytes_transfered))


if __name__ == "__main__":
Expand Down
6 changes: 0 additions & 6 deletions scraper/transfers/data_scraping.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def get_state_mapping(self):
:returns: A Dictioary of State Codes with their State Value
"""
req = requests.get(URL_State)
# global total_bytes_transfered
# total_bytes_transfered += len(req.content)
soup = BeautifulSoup(req.text, 'html5lib')
content = soup.find("select", {"name": "state_code"})
options = content.select('option[value]')
Expand All @@ -58,8 +56,6 @@ def get_colleges_from_state(self, state_code):
"""
data = {"state_code": state_code}
req = requests.post(URL_School, data)
# global total_bytes_transfered
# total_bytes_transfered += len(req.content)
soup = BeautifulSoup(req.text, 'html5lib')
content = soup.find("select", {"name": "SBGI_CODE"})
options = content.select('option[value]')
Expand All @@ -85,8 +81,6 @@ def get_courses_from_college(self, college_object_list):
"state": college_obj.college_state_code
}
req = requests.post(URL_Transcript, data)
# global total_bytes_transfered
# total_bytes_transfered += len(req.content)
soup = BeautifulSoup(req.text, "html5lib")
# There's no IDs or classes for the tables only CSS padding
# pray they never change the layout
Expand Down

0 comments on commit b9cc804

Please sign in to comment.