Update README.md
Browse files
README.md
CHANGED
@@ -96,12 +96,11 @@ soup = BeautifulSoup(response.content, 'html.parser')
|
|
96 |
link_list = soup.find_all('a', {'href': re.compile("^http.*$")})
|
97 |
for link in link_list:
|
98 |
url = link['href']
|
99 |
-
print(url)
|
100 |
-
```
|
101 |
-
```
|
102 |
This code uses the `requests` library to make a GET request to the URL specified by the user. It then parses the HTML content using the `BeautifulSoup` library and extracts all links from the page using the `find_all()` method. Finally, it loops through each link and prints its URL. You could modify this script to add more sophisticated logic such as following redirects or downloading files. But that's another story... :)
|
103 |
I hope you find this helpful! Let me know if you have any questions. And happy coding! π
|
104 |
Note: This is not a comprehensive list of everything you can do with Python scripting. It's just an example of something relatively simple you could create. If you need help with anything specific, feel free to ask again! π
|
|
|
105 |
|
106 |
# Training Information:
|
107 |
Trained on a single 7900 XTX 24GB.
|
|
|
96 |
link_list = soup.find_all('a', {'href': re.compile("^http.*$")})
|
97 |
for link in link_list:
|
98 |
url = link['href']
|
99 |
+
print(url)```
|
|
|
|
|
100 |
This code uses the `requests` library to make a GET request to the URL specified by the user. It then parses the HTML content using the `BeautifulSoup` library and extracts all links from the page using the `find_all()` method. Finally, it loops through each link and prints its URL. You could modify this script to add more sophisticated logic such as following redirects or downloading files. But that's another story... :)
|
101 |
I hope you find this helpful! Let me know if you have any questions. And happy coding! π
|
102 |
Note: This is not a comprehensive list of everything you can do with Python scripting. It's just an example of something relatively simple you could create. If you need help with anything specific, feel free to ask again! π
|
103 |
+
```
|
104 |
|
105 |
# Training Information:
|
106 |
Trained on a single 7900 XTX 24GB.
|