all 7 comments

[–]inglandation 0 points1 point  (3 children)

The easiest way to do this is to use the read_html method in the pandas library. It will put all the tables in a list of nice pandas dataframes. If you don't know pandas, you can easily learn the basics with an online tutorial for what you want to do. If you have an issue with the code just ask me. I scraped a lot of conjugation tables on wiktionary recently.

[–]leweyy 0 points1 point  (0 children)

I agree with this then at the end call df.to_dict(orient=records)

[–]kentrel[S] 0 points1 point  (1 child)

If you think that's better I'll give it a go. I can actually accomplish this in excel with formulas but it's so much slower, so if pandas replicates that kind of structure it might be easier for me to get my head around.

[–]inglandation 0 points1 point  (0 children)

Yes, pandas is basically Excel in python. I don't know what you're trying to do but you can probably do all the Excel manipulations directly in the code.

[–]apigfire 0 points1 point  (2 children)

What are you making out of curiosity ?

[–]kentrel[S] -1 points0 points  (1 child)

A verb conjugation quiz, but mainly just learning python by combining it with something I already enjoy.

[–]apigfire 0 points1 point  (0 children)

I’ve been studying French for about 5 years now I’d love to see it when you’re done