Select elements by their type. Selects all elements of type A
. Type refers to the type of tag, so div
, p
and ul
are all different element types.
div
selects alldiv
elements.p
selects allp
elements.
# To run you'll need some secrets: | |
# 1. SERPAPI_API_KEY secret in env var - get from https://serpapi.com/ | |
# 2. OPENAI_API_KEY secret in env var - get from https://openai.com | |
import streamlit as st | |
import json, os | |
from langchain.prompts import PromptTemplate | |
from langchain.llms import OpenAI | |
from serpapi import GoogleSearch |
<span id="pc" class="hidden">✊</span> | |
<div id="player"> | |
<span id="rock">✊</span> | |
<span id="paper">🤚</span> | |
<span id="scissor">✌️</span> | |
</div> | |
<p class="hidden">You Win</p> |