* Add search book via ISBN using openlibrary.org API
* FIX: parameters type hints and isbn sizes
* Add doctests
* Update search_books_by_isbn.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Added new file: nasa_data.py
* Modified as per review
* Minor change
* print(get_archive_data("apollo 2011")["collection"]["items"][0]["data"][0]["description"])
* Update nasa_data.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Added giphy.py to fetch gifs on a given topic
* Modified code
[*]Added doctest
[*]Formatted with black
* Minor change
* Minor refactoring to avoid name clash
* Made necessary changes as per review
* Update web_programming/giphy.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Apply suggestions from code review
* Final cleanup
* Placate psf/black
Co-authored-by: Christian Clauss <cclauss@me.com>
* improved readability of the existing method by reformatting, adding documentations with doctests.
* improved readability of the existing method by reformatting, adding documentations with doctests.
* fixed typo in test
* added doctest to parse dictionary method
* added doctest to parse dictionary method
* Changed return type, removed print() from method and implemented doctests as suggested
* Fixed doctest error, removed print() from method, created new script as suggested
* Update get_imdbtop.py
* Fix typo discovered by codespell
* return ()
Co-authored-by: Christian Clauss <cclauss@me.com>
* Added new script to open the google image tab with a search query.
* Added new script to open the google image tab with a search query.
* Added new script to open the google image tab with a search query with doctests.
* Fixed doctest error, removed print() from method, changed return type
* Update web_programming/show_image_tab_from_google_query.py
using iterators instead of lists
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/show_image_tab_from_google_query.py
Improve readability by removing one-time used variable
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/show_image_tab_from_google_query.py
Decreasing complication through standard practices.
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/show_image_tab_from_google_query.py
Exception Handling
Co-authored-by: Christian Clauss <cclauss@me.com>
* changed complete method to download images from google search query
* Update download_images_from_google_query.py
* Delete show_image_tab_from_google_query.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* fixed colons and spaces
* fixed colons and spaces
* random anime character python script
* more tests passed
* type hint updated
Co-authored-by: Christian Clauss <cclauss@me.com>
* type hint updated again
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update random_anime_character.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* fixes#3944 authentication error
* Fixes: #3944 authentication error
* Fixed docstring failure in pre-commit, Fixed request.get params to GitHub REST API standards
* run black formatter
* Add USER_TOKEN constant and checks if empty, removes deprecated docstring
* Add descriptive dict type hint, change headers format to f-string
* Add Accept header
* Fix pre-commit error
* Fix pre-commit error
* Add test for fetch_github_info
* Remove test function from main file
* Create test_fetch_github_info.py
* Update test_fetch_github_info.py
* Update test_fetch_github_info.py
* No need to cover __name__ == __main__ block
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
* Add initial support for moving tests to GitHub
* Add setup Python step in the workflow
* Remove Travis CI config file
* Fix GitHub action file for build to trigger on PR
* Use Python 3.8 as tensorflow is not yet supported
* Fix ciphers.hill_cipher doctest error
* Fix: instagram crawler tests failing on GitHub actions
* Fix floating point errors in doctest
* Small change to test cache
* Apply suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Add GitHub action file for pre-commit
* Fix errors exposed by pre-commit hook:
- Remove executable bit from files without shebang. I checked those
file and it was not needed.
- Fix with black
* Apply suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
* Adding job scarping algorithm to web programming
* Delete fetch_jobs.py
* Adding Jobs Scraping to web programming
* Add Python type hints
Co-authored-by: Christian Clauss <cclauss@me.com>
* Josephus problem in Python
Added the code for the josephus problem in python using circular linked lists.
* Update josephus_problem.py
* Added World covid19 stats in web programming
* Delete josephus_problem.py
* Type hints, algorithmic functions should not print
Return a dict of world covid19 stats. Move all printing into the main functions.
* Update world_covid19_stats.py
* Update world_covid19_stats.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* fix fetch_github_info __main__ bug
* Algorithms should not print
* Update fetch_github_info.py
* Update fetch_github_info.py
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Created weatherforecast.py
Added weatherforecast.py to retrieve weather information of a location and return dictionary values.
* Update weatherforecast.py
* Update and rename weatherforecast.py to current_weather.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Deal with maps
Try with the search term "pizza" to see why this was done in #1932
* fixup! Format Python code with psf/black push
* Update armstrong_numbers.py
* updating DIRECTORY.md
* Update crawl_google_results.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* spelling corrections
* review
* improved documentation, removed redundant variables, added testing
* added type hint
* camel case to snake case
* spelling fix
* review
* python --> Python # it is a brand name, not a snake
* explicit cast to int
* spaces in int list
* "!= None" to "is not None"
* Update comb_sort.py
* various spelling corrections in documentation & several variables naming conventions fix
* + char in file name
* import dependency - bug fix
Co-authored-by: John Law <johnlaw.po@gmail.com>
* Remove code with side effects from main
When running tests withy pytest, some modules execute code in main scope
and open plot or browser windows.
Moves such code under `if __name__ == "__main__"`.
* fixup! Format Python code with psf/black push
* Python Program that fetches top trending news
* Python Program that fetches top trending news
* Revisions in Fetch BBC News
* psf/black Changes
* Python Program to send slack message to a channel
* Slack Message Revision Changes
* Python Program to check Palindrome String
* Doctest Added
* Python Program to check whether a String is Panagram or not
* Python Program to check whether a String is Panagram or not
* Check Panagram Script Added
* Panagram Script Added
* Anagram Script Changes
* Anagram Alphabet Check Added
* Python Program to fetch github info
* Python Program that fetches top trending news
* Python Program that fetches top trending news
* Revisions in Fetch BBC News
* psf/black Changes
* Python Program to send slack message to a channel
* Slack Message Revision Changes
* Python program that scrufs 3 site at a time
add input in the compiling time like -- python3 project1.py (man)
* Update project1.py
* noqa: F401 and reformat with black
* Rename project1.py to web_programming/crawl_google_results.py
* Add beautifulsoup4 to requirements.txt
* Add fake_useragent to requirements.txt
* Update crawl_google_results.py
* headers={"UserAgent": UserAgent().random}
* html.parser, not lxml
* link, not links