Can python be used to code bots like tweet marketing robot or twt dom?

Ninjasaywhat

Newbie
Joined
Aug 3, 2013
Messages
29
Reaction score
7
Hey guys, the title says it all! Please let me know. And if not, would it require something such as C#?
 
yes you can create codes.. use have some library files like twitterbot..
 
Could someone please point me in the direction of a helpful site?
 
its not going to be as effective in coding a "pretty bot", aesthetically pleasing with a nice gui. but it can make something just as efficient. Me personally i hate python's indentation, but its a pretty good language to learn if your interested in botting.
 
Hey guys, the title says it all! Please let me know. And if not, would it require something such as C#?

No reason you can't. Python has really good selection of webscaping libraries. There's Mechanize, Requests, urllib3, bindings for Selenium Webdriver and it has several good libraries built right in as part of the standard library. Though if you need javascript support I haven't found anything very usable.

its not going to be as effective in coding a "pretty bot", aesthetically pleasing with a nice gui. but it can make something just as efficient. Me personally i hate python's indentation, but its a pretty good language to learn if your interested in botting.

why not? python has bindings to major gui libraries (QT, GTK, WX) and there's also the regular old Tkinter library.
 
many bots are coded using python.. its one of best language for coding bots.. well i cant say that c# isnt.. it just depends on preference.
 
Okay, cool. Thanks for the input guys. The reason I ask about Python, rather than C# is because codeacademy.com offers a python option and NOT a C# option.

Anyone know of any bot making tutorials with python they can recommend?
 
Okay, cool. Thanks for the input guys. The reason I ask about Python, rather than C# is because codeacademy.com offers a python option and NOT a C# option.

Anyone know of any bot making tutorials with python they can recommend?
Plan your application ,Split your app into modules . Then find solutions to each module .
 
spynner 2.15 support AJAX,JAVA Script as well

personally I have not used it but it support both java script and ajax

Back a few months I tested out everything python browser that supported Javascript I could find (spynner, ghost, PyPhantomjs, zope) unfortunately they all failed when it came to running more than one instance of them at once.
 
btw I read some where python is very good language for threading as compare to any other language it support multi thread as well as multitasking ,I agree that it may possible that although paython support multi threading but these modules are not supporting multi threading

Also can u share your thought which is best spynner, ghost, PyPhantomjs, zope mean more powerful

It will really help all of us if you share any small code of web automation by considering Ninjasaywhat request
 
For dealing with AJAX you don't need browser emulation with JS support. Everything you need is HTTP traffic monitor (for example HttpFox for Firefox or Wireshark) for catching requests and repeating them (often with X-Requested-With HTTP header = XMLHttpRequest). For native JS support you can use Selenium WevDriver. Try "requests" lib for working with HTTP protocol. It's a very simple tool. If you have any questions - just pm me. Good luck. Python is watching you ;)
 
For dealing with AJAX you don't need browser emulation with JS support. Everything you need is HTTP traffic monitor (for example HttpFox for Firefox or Wireshark) for catching requests and repeating them (often with X-Requested-With HTTP header = XMLHttpRequest). For native JS support you can use Selenium WevDriver. Try "requests" lib for working with HTTP protocol. It's a very simple tool. If you have any questions - just pm me. Good luck. Python is watching you ;)
Do you have any good python examples of using AJAX? I haven't been able to find anything that uses real working sites. Most of the tutorials use hypothetical examples so I can't test if im actually doing it right.
 
Last edited:
It's all about sending the right POST with the right variables, to the right url.
 
Back
Top