Insert Values from dictionary into sqlite database
问题 I cannot get my head around it. I want to insert the values of a dictionary into a sqlite databse. url = "https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=5f...1b&per_page=250&accuracy=1&has_geo=1&extras=geo,tags,views,description" soup = BeautifulSoup(urlopen(url)) #soup it up for data in soup.find_all('photo'): #parsing the data dict = { #filter the data, find_all creats dictionary KEY:VALUE "id_p": data.get('id'), "title_p": data.get('title'), "tags_p": data.get(