import requests
from bs4 import BeautifulSoup
myres = requests.get("https://www.orionscache.com/books")
soup = BeautifulSoup(myres.text, "html.parser")
count = 0
for my_links in soup.findAll('a'):
if count == 10:
break
print(my_links.string)
count = count + 1
==========================================================
SEE OUTPUT / IMAGE for Indentation
Thanks, PLEASE COMMENT IF THERE IS ANY CONCERN.
Get Answers For Free
Most questions answered within 1 hours.