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

Increasing maintainability of the code #4

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

djmhunt
Copy link

@djmhunt djmhunt commented Feb 26, 2022

My aim here was to break the code into smaller pieces that could be easier to read and easier to maintain, while not changing the underlying functionality. With that in mind, I created two new functions (get_car_details and get_page_html), which are hopefully self-explanatory. I have also replaced the verbose printing with outputting to a logger, allowing the outputs to be extended to multiple levels of detail. I also removed any tabs that were being used for indentation and replaced them with four spaces. Lastly, I added a requirements.txt file to give anyone installing the code a little more information.

I hope to extend this code to provide more information from the searches, but as that will break more with your current approach, I wanted to share this with you first.

Let me know your thoughts and of course happy to discuss improvements or changes to it

…. Removed the possibility of creating empty files
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

1 participant