I’ve managed to scrape a datatable I need from a website. I now have one column (A) which holds the field names and a second column (B) which has the entries for those fields.
What I would like to do is make it so that Column A is a header and then Column B is a variable (as it will change with each web page scraped).
Eg, It is currently like this:
Col1 Col 2
Name: Tim
Age: 45
Location: America
I want to make it so that the variable ‘name’ will be Tim, variable ‘Age’ will be ‘45’ and variable ‘Location’ will be America, for example. I think these would have to be strings also.
Could anyone help me with this please? Apologies, I’m new! Thank you.
I’ve done all this and (surprisingly) it didn’t error aha. How do I then view the output variables? If I could add them to the log too in order to see the output, that would be great.