Jump to content
UBot Underground

Scraping Tables


Recommended Posts

Hey Guys,

 

I have got the following "problem". I want to scrape tables fro e.g. 10 pages.

Goto Page 1

Scrape Table

Goto Pag 2

Scrape Table

Goto ....

 

Save tables in a file.

 

Unfortunately it seems not to be possible to add a scraped table to an existing table?

 

Could someone help me ?

Link to post
Share on other sites

That is correct. Once you are done with your initial scrapes then you can execute a shell command to append the CSV file together and then load that file.

 

If I have time I may play with this to see if there are other options.

 

What website are you using?

Link to post
Share on other sites

Another way (albeit not the best way) is to save each table to a file like such:

 

set variable ---> #file = 1

 

save to file ---> i.e. Desktop\tables\table{1}.csv

 

inc file

 

Once you are done you can load the tables and merge them through another process.

 

John

 

 

 

Link to post
Share on other sites

I would probably loop through each column and add it to a list. When the list is done save it to a new table as a column, etc (do for each column).

 

John

Link to post
Share on other sites
  • 1 year later...
Unfortunately it seems not to be possible to add a scraped table to an existing table?

 

oh no!!!

 

But how to merge 20 files into 1 ?

 

how do i do this if I have 1000s of files to merge...

 

there must be a better way, is it possible to add a scraped table to an existing table SOMEHOW?

Link to post
Share on other sites

get the total rows of table you want to add to, then loop total number of new scraped table, adding each row to the new table, starting from the total number of rows from the table your adding to.

 

it sounds confusing i know, but read it a couple times will make since..

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...