Can BeautifulSoup find elements with a matching value?
<p>I am working on a web scraper for the first time, and I am using Beautiful Soup to parse a JSON file and return several attributes that I send to a CSV. </p>

<p>The <code>status</code> variable, in the JSON array, is a binary value (0/1). I'd like to return only arrays that have a 0 for status. Is it feasible to do that? </p>

<pre><code>"""soup = BeautifulSoup(html)
table = soup.find()
print soup.prettify()"""
js_data = json.loads(html)
Attraction = []
event = []
status = []
for doc in js_data["response"]["docs"]:
    Attraction.append(doc["Attraction"])
    event.append(doc["PostProcessedData"]["Onsales"]["event"]["date"])
    status.append(doc["PostProcessedData"]["Onsales"]["status"])
with open("out.csv","w") as f:
    datas = zip(Attraction,event,status)
    keys = ["Attraction","event","status"]
    f.write(";".join(keys))
    for data in datas:
        f.write(",".join([str(k).replace(",",";").replace("&lt;br&gt;"," ") for k in data]))
        f.write("\n")
</code></pre>