/ \ __ _\( )/_
\ \ ,, / / | / \ | /(O)\
'-.`\()/`.-' \_\\ //_/ _.._ _\(o)/_ // \\
.--_'( )'_--. .'/()\'. .' '. /(_)\ _\\()//_
/ /` /`""`\ `\ \ \\ // / __ \ / // \\ \
| | >< | | , | >< | , | \__/ |
\ \ / / . \ \ / / . _
_ '.__.' _\(O)/_ \_'--`( )'--'_/ __ _\(_)/_
_\( )/_ /(_)\ .--'/()\'--. | / \ | /(O)\
/(O)\ // \\ _ / /` '' `\ \ \_\\ //_/
_\\()//_ _\(_)/_ | | //()\\
/ // \\ \ /(o)\ \ / \\ //
| \__/ |This is a simple Python script for web scraping using the requests library to fetch a web page and BeautifulSoup for parsing and extracting information from it. It allows you to enter a URL, and it will print out the text and href attributes of all the anchor tags (<a>) on the web page.
Before you begin, ensure you have met the following requirements:
- Python installed on your machine
- Required libraries (
requestsandbeautifulsoup4) installed. You can install them usingpip:
pip install requests beautifulsoup4