Skip to content

Instantly share code, notes, and snippets.

@nengkya
Created November 12, 2018 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nengkya/5ccc20d966a1cad871bcfef9394bafdf to your computer and use it in GitHub Desktop.
Save nengkya/5ccc20d966a1cad871bcfef9394bafdf to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup
keyword = 'iphone'
r = requests.get(
' https://render-tron.appspot.com/render/https://www.bhinneka.com/search%3Fq%3D' +
keyword)
soup = BeautifulSoup(r.content, 'html.parser')
print(soup.find_all('div', {'id': 'catalogueProduct'}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment