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

Improve user input, replace os usage to clear screen, replace urllib by requests to get status code #28

Merged
merged 4 commits into from May 7, 2022

Conversation

Aymane11
Copy link
Contributor

@Aymane11 Aymane11 commented May 7, 2022

This PR contains the following changes:

  • Formatting code using black
  • Replace direct execution of cls or clear using os module by rich console's clear method
  • Replace urllib urlopen with requests.get(url).status_code to get website status code see this
  • Improve user input by adding an exit option (0) and keep asking for valid input
  • Use rich colors instead of ANSI escape sequences.

@lkabuci lkabuci merged commit f3ee27a into lkabuci:main May 7, 2022
@lkabuci
Copy link
Owner

lkabuci commented May 7, 2022

Love them❤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants