Jump to content
UBot Underground

How To Scrape Data Into A Table To Excel


Recommended Posts

Not really sure if this can be done.  But how do you scrape tables to an excel file?

 

Lets say Season 1 on:

 

https://en.wikipedia.org/wiki/List_of_The_Legend_of_Korra_episodes

 

 

I have looked up tutorials but most seem to be Regex or list based examples.   I want to extract this data and put it in to an excel in row 1, 2, 3 so it looks like that the page but in excel. Is this possible? 

 

 

Link to post
Share on other sites

There is literally a "scrape table" command ;)

scrape table($element offset(<class="wikitable plainrowheaders">,0),&data)

You can then use the "save to file" command to save it as a csv file.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...