Open dmarx opened 1 year ago
from bs4 import BeautifulSoup
url = "https://en.wikipedia.org/wiki/List_of_contemporary_ethnic_groups"
response = requests.get(url)
soup = BeautifulSoup(response.text)
tables = soup.find_all('table')
target = tables[1] # <table class="wikitable sortable" width="100%">
records = target.find_all('tr')
header = records[0]
header = records[0]
for elem in header:
if elem.text:
print(elem.text.strip())
for each, permute:
two places? indoor, outdoor?- nah, this induces bias unnecessarily.use same permuted prompt templates for all country/ethnicity names.
invoke date, e.g. "january 2024" as a suffix