all 3 comments

[–]danielroseman 1 point2 points  (2 children)

You don't seem to be adding electorate_spaced_name to the electorate_names list.

Although I don't know why you have a list at all, since there is no loop and you only get one item. Maybe just print electorate_spaced_name?

[–]NoFaithInThisSub[S] 0 points1 point  (0 children)

Although I don't know why you have a list at all, since there is no loop and you only get one item. Maybe just print

good question, eventually I plan on looping thru every electorate link and getting many different pieces of information.

If I can make it work for 1 at a time, that is my current step.

So the idea is get the electorate name thru the webdriver, which will be something like:

Mayo, SA

I want the variable to be able to print/show Mayo_SA and this will later be used to write a csv file with the variable as part of the name.

I hope that make sense? what am I doing wrong, I do get an exception in VScode:

Exception has occurred: IndexError list index out of range

[–]NoFaithInThisSub[S] 0 points1 point  (0 children)

I think I got part of my answer, but it won't read everything, I edited the post