VBA or Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jablo1312
    SBR Hustler
    • 03-22-11
    • 57

    #1
    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?
  • thom321
    SBR High Roller
    • 06-17-11
    • 112

    #2
    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.
    Comment
    • Blax0r
      SBR Wise Guy
      • 10-13-10
      • 688

      #3
      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).
      Comment
      • MonkeyF0cker
        SBR Posting Legend
        • 06-12-07
        • 12144

        #4
        Depends what you're looking to do.

        Python is far more powerful than VBA.

        I wouldn't limit myself to only those two choices.
        Comment
        • a4u2fear
          SBR Hall of Famer
          • 01-29-10
          • 8147

          #5
          Matlab is most annoying to use. Recommend VBA
          Comment
          • roasthawg
            SBR MVP
            • 11-09-07
            • 2990

            #6
            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.
            Comment
            • tukkk
              SBR Sharp
              • 10-04-10
              • 391

              #7
              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.
              Comment
              • a4u2fear
                SBR Hall of Famer
                • 01-29-10
                • 8147

                #8
                Matlab costs a shitload too
                Comment
                • Wrecktangle
                  SBR MVP
                  • 03-01-09
                  • 1524

                  #9
                  Python!
                  Comment
                  • jablo1312
                    SBR Hustler
                    • 03-22-11
                    • 57

                    #10
                    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"?
                    Comment
                    • MonkeyF0cker
                      SBR Posting Legend
                      • 06-12-07
                      • 12144

                      #11
                      There are very significant differences between VBA and Python.

                      Google is a wonderful tool.
                      Comment
                      • Maniac
                        SBR Wise Guy
                        • 04-12-11
                        • 667

                        #12
                        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...
                        Comment
                        • strixee
                          SBR Sharp
                          • 05-31-10
                          • 432

                          #13
                          Originally posted by roasthawg
                          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.
                          Comment
                          SBR Contests
                          Collapse
                          Top-Rated US Sportsbooks
                          Collapse
                          Working...