1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can Python Be used for creating sophiticated SEO toolss??

Discussion in 'Black Hat SEO' started by santhej, Dec 13, 2012.

  1. santhej

    santhej Jr. VIP Jr. VIP

    Joined:
    May 26, 2010
    Messages:
    544
    Likes Received:
    170
    Gender:
    Male
    Occupation:
    Virtual Assistant Provider
    Location:
    Derby
    Home Page:
    hey guys i have noted that most of the popular seo tools are programmed in C#..is there some specific reason for this?I have heard that python is efficient programming language..can python be used for creating softwares like senukex or scrapebox?is there some reason why people prefer C# over python??
     
  2. trustedfire9

    trustedfire9 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 15, 2010
    Messages:
    2,108
    Likes Received:
    1,785
    I'm not programmer but yes , this question asked a lot btw ,and you can create tools in any language ....
    btw top seo tools in my opinion are SB and xrumer and both coded in Delphi and not c
     
  3. simpleonline1234

    simpleonline1234 Junior Member

    Joined:
    Jan 26, 2010
    Messages:
    169
    Likes Received:
    13
    A programming language is all that it really is..just a language. As far as what you CAN do in each language it's pretty much the same with the exception of of how much control you have over lower level programming with things like memory managment, etc.

    I would say to learn the basics of computer science and then worry about the language second. Most programmers that code for a career can have multiple languages under their belt depending on what the job requires.
     
  4. santhej

    santhej Jr. VIP Jr. VIP

    Joined:
    May 26, 2010
    Messages:
    544
    Likes Received:
    170
    Gender:
    Male
    Occupation:
    Virtual Assistant Provider
    Location:
    Derby
    Home Page:
    I am asking is there some advantage for C# over python while coding seo tools??like some library fuctions or something?
     
  5. JKasper

    JKasper Newbie

    Joined:
    Feb 21, 2012
    Messages:
    4
    Likes Received:
    5
    Yes, python is an excellent language for creating SEO tools. If you're looking to create tools for your own personal use, Python would be one of my top 2 choices along with Perl. Most likely the reason popular SEO tools are written in C# is because with C#/VB/.NET you can create executable binaries to distribute to the users. Obviously if you're selling a tool, you usually want to keep the source code secret so a binary-only executable is the only feasible means of distribution for something you are offering commercially. You cannot do this in a scripting language like Python. Furthermore, if you're distributing a tool, it is much easier for the tool's users to to just run a windows .exe than to hand them a python script. At the very least the user would need to know how to install python and run the script. It's not hard...but potentially beyond the abilities of many non-programmer users.

    Most SEO tasks involve parsing and processing text. These tasks tend to be a lot easier and shorter to code in dynamically typed languages like python. Also, the library support for these types of things is better in Python. So, if you don't need to create redistributable executables then go with Python for sure. If you want to sell an application for users to run on their own pc's then go with a .NET language.
     
    • Thanks Thanks x 5
  6. santhej

    santhej Jr. VIP Jr. VIP

    Joined:
    May 26, 2010
    Messages:
    544
    Likes Received:
    170
    Gender:
    Male
    Occupation:
    Virtual Assistant Provider
    Location:
    Derby
    Home Page:
    thats some nice onformation..but i heard that now there are some methods to create binaries from python files??u guys heard something about it??
     
  7. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    I use it for 90% of my needs from your average lil scraper to SEO ad bots requiring AI capabilities. Nuff said.
     
  8. Gary Becks

    Gary Becks Power Member

    Joined:
    Apr 11, 2010
    Messages:
    675
    Likes Received:
    282
    Location:
    Atl
    Home Page:

    This is not true at all. You can definitely create .exe files with python using py2exe . UBERBLOGCREATOR was created with python. Furthermore, you can use IronPython in Visual Studio or with Sharpdevelop and you have all of the same libraries/features available that are in C#/VB.net .

    Long story short, if you want to use Python for creating SEO tools then go with one of the derivatives of it that takes advantage of .Net or JRE (IronPython/Jython) that way you get the benefits of using a familiar language and using both python and Java/Net libraries/ides/3rd party tools.
     
    • Thanks Thanks x 3
  9. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    Excellent tools exist to create binary files ready to deploy with the obvious advantage of targeting effortlessly win / mac os x and linux with the same identical python code. Have a look at cxfreeze, for instace and have fun. Plus you can embed python with c# if you feel really creative ;) Only limitation, if we wanna talk automation seriously is speed but .net in this case wouldn't definitely be the right answer: that's why I use c and c++ where being super fast IS an absolutely critical factor that's rarely the case with SEO and IM bots in general. With the right frameworks it's just a matter of porting the same python logic verbatim to c++ (that's more or less adding semicolons and changing a few statements...) and hit the magic compile button. Taking this latter approach: end of framework compatibility issues with the added benefit of cross compiling benefits and end of lackluster performances, VM or JIT bs. Of course the drawback is that the learning curve might be a bit steeper than .net so that might not be for all, but definitely it's not a matter of technical limitations. Pretty much all the opposite.
     
  10. olystyle

    olystyle Regular Member

    Joined:
    Jan 6, 2012
    Messages:
    238
    Likes Received:
    103
    py2exe has a nice counterpart: py2app - packs your python application in a smooth .dmg...

    cheers olystyle
     
    • Thanks Thanks x 1
  11. JKasper

    JKasper Newbie

    Joined:
    Feb 21, 2012
    Messages:
    4
    Likes Received:
    5
    I've never tried to make a python executable but my understanding is that in most of these cases the binary format is mostly just a binary version of the abstract syntax tree of the script with all variable and function names in-tact, and that this is trivial to decompile back into the almost original python source, so those methods are not likely to keep the source-code very secure. You can use jython to make a java jar file, or iron python to make a .net assembly. It's been a long time since I looked into either of these, but years ago anyway, hardly any of the popular python libraries were supported by jython or Iron Python. IMHO, one of the best reasons to use python is for the rich selection of open-source libraries that are out there, which it seemed like you had to give up to use Jython or Iron Python.
     
  12. thejake

    thejake Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 13, 2009
    Messages:
    685
    Likes Received:
    828
    There's very little missing with jython and ironpython these days, they're both nearly complete kit and pure-python fallback has become idiomatic for most pypi packages. If I need to put a GUI on something I've written in python, SharpDevelop is a doddle, compiles to .exe and works nicely with wix.
     
  13. santhej

    santhej Jr. VIP Jr. VIP

    Joined:
    May 26, 2010
    Messages:
    544
    Likes Received:
    170
    Gender:
    Male
    Occupation:
    Virtual Assistant Provider
    Location:
    Derby
    Home Page:
    guys what about programming GUI windows in python??is it realy easy??or should options like iron python be considered?
     
  14. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,081
    Likes Received:
    856
    Home Page:
    there is many tools in python man..
     
  15. webmasterbd

    webmasterbd Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 2, 2009
    Messages:
    2,568
    Likes Received:
    2,120
    Occupation:
    Internet marketer,designer,blogger & many more....
    Location:
    HELL!!
    Home Page:
    I also started learning python for last few weeks,so far it looks more flexible then any other programming language i tried to learn.
     
    • Thanks Thanks x 1
  16. DreamBigWorkHard

    DreamBigWorkHard Registered Member

    Joined:
    Nov 20, 2012
    Messages:
    92
    Likes Received:
    11
    Occupation:
    Daydreamer
    You can try wxPython(cross-platform toolkit), it's great for GUI programming. But if you only need to program for yourself, I don't think you really need a GUI. For SEO tools, all you really need is a good use of threading and urllib2 module.
     
    Last edited: Dec 14, 2012
  17. Gary Becks

    Gary Becks Power Member

    Joined:
    Apr 11, 2010
    Messages:
    675
    Likes Received:
    282
    Location:
    Atl
    Home Page:
    PyQt.

    Check it out. http://www.youtube.com/watch?v=JOuCuLHmk3o

    I personally recommend using Sharpdevelop and IronPython though. Much easier IMHO.
     
  18. PappySmurph

    PappySmurph Newbie

    Joined:
    Aug 23, 2012
    Messages:
    8
    Likes Received:
    2
    Location:
    From Russia With Love
    AFAIK C# would be better for a few reasons. Python is good too. I just don't think it has an equivalent of .NET's WebDriver/MSHTML component so to handle JavaScript/AJAX pages you'd need to find some solution of integrating it with an actual web browser.

    Also, Python threads are pretty bad. Very poor performance. There was a Python variant that had better threads but can't remember it's name. something that had what they called micro-threads.
     
  19. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    WTH are you saying, son... :D There are SEVERAL bindings to webkit (qt, gtk) in ADDITION to the ActiveX IE component readily available by means of the right extension for win and even bindings to gecko (firefox). All of this stuff clearly comes with FULL DOM/ajax capabilities. If you're not satisfied with the pretty good python wrapper against pthreads you can always write your own library in c and make it a python module, but I can guarantee you'll never need it. From a guy who wrote assembly routines to empty manually the stack from the threads of his apps because I wasn't entirely satisfied with what valgrind reported in the default implementation of mallc / free... ;)
     
  20. PappySmurph

    PappySmurph Newbie

    Joined:
    Aug 23, 2012
    Messages:
    8
    Likes Received:
    2
    Location:
    From Russia With Love
    Links for info on the browser bindings please.

    Python threads suck. Period. Is because of the GIL. There are even some video presentations on this topic where it is explained how bad it is. It can work well depending on what your threads do or it can double the execution time instead of improving it. Things are even worse on multi-CPU systems.