Skip to content

Commit

Permalink
url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eviltr0N committed Aug 30, 2024
1 parent 0c6bd3a commit 952623f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internshala_bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,15 @@ def main():
exit()
if len(urls) > 1:
for url in urls:
if url.find("internshala.com/internship/detail/") != -1:
if url.find("internshala.com/internship/detail/") != -1 or url.find("internshala.com/internship/details/") != -1:
links.append(url)
elif url.find("internshala.com/internships/") != -1:
print("[bold red]Please Don't Combine[/] Single Internship url [bold red]with[/] Multiple Internship Search page url. \n\nYou can either enter url of search page of Internshala After applying desired filters \n[bold yellow]Example[/]: https://internshala.com/internships/work-from-home/ \n\n OR \n\nYou can enter single/multiple urls of Individual Internship detail page seperated by spaces \n[bold yellow]Example[/]: \nFor Individual Internship: \nhttps://internshala.com/internship/detail/x-y-z \n\nFor Multiple Individual Internships: \nhttps://internshala.com/internship/detail/a-b-c https://internshala.com/internship/detail/x-y-z https://internshala.com/internship/detail/s-h-e \n\nFull Guide on Github - https://github.com/Eviltr0N/internshala-bot?tab=readme-ov-file#how-to-use")
exit()
else:
print("[bold red]Invalid url: [/]", url)
else:
if urls[0].find("internshala.com/internship/detail") != -1:
if urls[0].find("internshala.com/internship/detail") != -1 or urls[0].find("internshala.com/internship/details") != -1:
links.append(urls[0])
elif urls[0].find("internshala.com/internships/") != -1:
url=urls[0]
Expand Down

0 comments on commit 952623f

Please sign in to comment.