Jan-24-2020, 12:24 PM
The most simple way would be to write the data to a file named *.CSV (Comma Separated Values). Excel is able to open such files. Then you would have to add a field separator between the values. This field separator is usually a comma but it may also be a semicolon. What Excel really accepts as a field separator is defined in the regional settings of your computer as "List separator".
So you should alter your print statement as follows:
So you should alter your print statement as follows:
print(h4.a.text.strip() + ',' + tag.attrs['id'])