r/IPython • u/japeal • Feb 17 '21
ipywidgets, User Input Choosing What Happens to Data
Hi all,
I'm trying to write a program that scrapes information from a website and then holds it until a user can review the information and choose what gets added to a main dataframe. I got the web scraping part down, but I need to figure out how to get a bit of code that allows me to go through each individual entry collected (and there could be a varying number of them each time) and 'approve' or 'deny' on a subjective basis.
I was figuring the best way to do this would be through ipywidgets, but I couldn't get something together that would allow me to generate a dropdown for each choice and then send a result back (resetting/clearing what needs to be reviewed each time). Would using ipywidgets be the best way to do this? Is there another module I should be looking at to make this work?
Thanks so much in advance for any thoughts or ideas !!
View all comments
Show parent comment
1
u/japeal Feb 18 '21 edited Feb 18 '21
Thanks for replying! This was the kind of explanation that helped me get this bit of code to work (:
For any future forum trawlers who show up here: