Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opportunity Hotfix #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 6 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ def request_github_internship24_data() -> List[Opportunity]:

url = os.getenv("GH_INTERN24_URL")
parse_content = utils.content_parser(url)
github_list = []
td_elems = parse_content.find_all("tr")

github_list: List[Opportunity] = []

for cell in td_elems[1:]:
if len(github_list) <= MAX_LIST_LENGTH:
elements = cell.find_all("td")

company = elements[0].text
company = elements[0].text if elements[0].text else github_list[-1].company

if not BlockList().is_blacklisted_company(company):
title = elements[1].text
location = elements[2].text
Expand Down Expand Up @@ -313,5 +315,5 @@ async def main():
opps.update_opportunities_status(internship_data_results)


if __name__ == "__main__":
asyncio.run(main())
# if __name__ == "__main__":
# asyncio.run(main())