Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am scraping some websites with curl and I am using Tor to avoid sending too many request with the same ip. The problem is that my app uses threads, so if I send the packet to change identity to the control port on one thread the identity change for all the other threads.

Is there a way I can use multiple identities with Tor?

share|improve this question

1 Answer 1

I'm not entirely sure what you mean by identities, and sending a packet to change it.

Using threads means sharing memory space, so if you want to change a variable in your application only for a specific thread, you need to make a separate variable for your thread, or other identity. Otherwise you could change your application to fork a separate process for each identity you use and achieve a similar effect.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.