1. #1
    jablo1312
    jablo1312's Avatar Become A Pro!
    Join Date: 03-22-11
    Posts: 57
    Betpoints: 1794

    VBA or Python

    I'm working on getting well acquainted with Python, but was wondering whether similar results could be achieved using Visual Basic (VBA) with Excel. It's a little more user friendly than Python, and I've seen people use it for data scraping before. Anyone have any advice/feedback on the positives and drawbacks between the two of them?

  2. #2
    thom321
    thom321's Avatar Become A Pro!
    Join Date: 06-17-11
    Posts: 112
    Betpoints: 4983

    I am highly biased in favor of VBA/Excel and I don't know Python. That said, I have personally not come across data that I couldn't scrape using VBA. Some sites require more work than others but so far I have always found a way with VBA. As far as speed, the bottleneck I most often run into is that the web page is not responding fast enough, not that VBA is too slow.

  3. #3
    Blax0r
    Blax0r's Avatar Become A Pro!
    Join Date: 10-13-10
    Posts: 688
    Betpoints: 1512

    I think Matlab's also worth a look; data scraping isn't too bad, and you can still view data as a spreadsheet.

    Also, the language isn't too hard to pick up (but matlab object-oriented programming still befuddles me).

  4. #4
    MonkeyF0cker
    Update your status
    MonkeyF0cker's Avatar Become A Pro!
    Join Date: 06-12-07
    Posts: 12,144
    Betpoints: 1127

    Depends what you're looking to do.

    Python is far more powerful than VBA.

    I wouldn't limit myself to only those two choices.

  5. #5
    a4u2fear
    TEASE IT
    a4u2fear's Avatar Become A Pro!
    Join Date: 01-29-10
    Posts: 8,147
    Betpoints: 35459

    Matlab is most annoying to use. Recommend VBA

  6. #6
    roasthawg
    roasthawg's Avatar Become A Pro!
    Join Date: 11-09-07
    Posts: 2,990

    I use php and have good luck with that... it's all about using what you know and learning something new if you have to.

  7. #7
    tukkk
    ★★★★★
    tukkk's Avatar Become A Pro!
    Join Date: 10-04-10
    Posts: 391

    I originally planned to start with vba and then move on to the next level, but now, after one year of messing around in vba, everything works great.

    downside : vba is slower in bigger processes.

  8. #8
    a4u2fear
    TEASE IT
    a4u2fear's Avatar Become A Pro!
    Join Date: 01-29-10
    Posts: 8,147
    Betpoints: 35459

    Matlab costs a shitload too

  9. #9
    Wrecktangle
    Wrecktangle's Avatar Become A Pro!
    Join Date: 03-01-09
    Posts: 1,524
    Betpoints: 3209

    Python!

  10. #10
    jablo1312
    jablo1312's Avatar Become A Pro!
    Join Date: 03-22-11
    Posts: 57
    Betpoints: 1794

    I'm not experienced with either of them, and have a fairly limited experience with Excel. I've done some preliminary work with Python and it doesn't seem difficult (as far as getting the basics down) to work with. I'd start wtih some basic data scraping and regression models (still learning more about the latter in school + on my own) but would hopefully like to get into more complicated modeling + back-testing as I go on...am I right in thinking that Python could be better for this? Or are the differences between them much more complex and specific than just "one is more powerful"?

  11. #11
    MonkeyF0cker
    Update your status
    MonkeyF0cker's Avatar Become A Pro!
    Join Date: 06-12-07
    Posts: 12,144
    Betpoints: 1127

    There are very significant differences between VBA and Python.

    Google is a wonderful tool.

  12. #12
    Maniac
    Maniac's Avatar Become A Pro!
    Join Date: 04-12-11
    Posts: 667
    Betpoints: 8815

    If you are looking at web scraping then supposedly Python is much simpler, at least a friend of mine managed to write a pretty good scraper without too much difficulty.

    Having said that, I have no experience with any other program, I have dabbled a little bit with Python in recent weeks and it seems alright - but at the moment am still at the stage of working out what the program can do following a book, so havent really tried to create something original using it yet...

  13. #13
    strixee
    I think, therefore I win
    strixee's Avatar Become A Pro!
    Join Date: 05-31-10
    Posts: 432

    Quote Originally Posted by roasthawg View Post
    I use php and have good luck with that... it's all about using what you know and learning something new if you have to.
    Yeah, PHP is also my favorite language for scraping as well as basic dataprocessing. cURL is very powerful extension.

Top