xzuyn commited on
Commit
a079cf9
Β·
1 Parent(s): 2e8325a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
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.