Jump to content
UBot Underground

Save data to a csv file without overriding previous data


Recommended Posts

I'm trying to build a script that can scrape data from a webpage andsave it in a csv file.

 

The bot will have to visit around 5000 links, and each time it visits one, it will have to create a new row to an existing csv with new information.

 

The bot will run multiple times, so how can i make sure it adds to the rows below and not override previous rows?

 

The csv i'm building will have around 5000 rows and 4-5 columns each...

 

Thank you!

Link to post
Share on other sites

There are a lot of software that can only do such task. You can simply get online and if possible, check how it should be done.http://imagicon.info/cat/5-34/vbulletin-eek.gif

Link to post
Share on other sites

Should be easy enough to increment in a loop if your doing it all in one go...

 

Alternatively you can save the current contents of the csv file to a list then use add to list (which won't overwrite the previous list items). When your done just save it all to the csv...

 

Or something like that... http://ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif

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