Skip to content
Advertisement

How to separate data per column when writing data to excel from web scraping results

I know how to separate it when the data looks like:

JavaScript

But I can’t figure out how to do it when the data format is like:

JavaScript

This is what the data looks like in excel after the scrape
This is what i wanted it to looks like
This is my code

JavaScript

Advertisement

Answer

This is my suggestion. I will need to know an offset to be able to test it.

A CSV separated by semi-colons will be far easier to separate in Excel.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement