Jump to content
UBot Underground

Question about scraping emails from multiple websites


Recommended Posts

So I'm trying to create a bot that goes to a webpage, scrapes a certain email address snd saves it to a .txt file. The bot then navigates to another webpage and scrapes another email address and saves it to that same .txt file. It then keeps repeating this process for a set amount of times.

 

I'm able to get it to navigate to the first website on my list and scrape the email address to a .txt file fine. The problem is when it navigates to the second website on the list and scrapes that email address. It scrapes the email like it's supposed to, but instead of adding it to the list with the previous scraped email, it replaces that email address instead. So when I go and open up the .txt file, instead of having both email addresses listed, it only has 1 (the last email address that it scraped). So every time it scrapes an email address, it just replaces the current one. How do I go about getting it to keep adding to the list each time it scrapes an email address, instead of replacing the previous one?

 

Thanks in advance for any help you guys can give me!

 

- Roger

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