Jump to content

Talk:Google Colab

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

import requests import pandas as pd from bs4 import BeautifulSoup

th = "https://www.goodreads.com/search?q=history&search_type=books"

headers = {

   "User-Agent": "Mozilla/5.0"

}

halaman = requests.get(th, headers=headers) hasil = BeautifulSoup(halaman.content, 'html.parser')

daftar1 = hasil.find_all(class_='bookTitle') daftar2 = hasil.find_all(class_='authorName') # ✅ diperbaiki daftar3 = hasil.find_all(class_='minirating')

judul = [a.get_text(strip=True) for a in daftar1] author = [b.get_text(strip=True) for b in daftar2] rating = [c.get_text(strip=True) for c in daftar3]

daftar = pd.DataFrame({

   "Judul": judul,
   "Author": author,
   "Rating": rating

})

print(daftar) ~2026-92986-6 (talk) 12:12, 11 February 2026 (UTC)[reply]

English

[edit]

this so perfect ~2026-11857-79 (talk) 09:23, 22 February 2026 (UTC)[reply]