User Profile

Collapse

Profile Sidebar

Collapse
JCOSTA
JCOSTA
Last Activity: Feb 2 '09, 01:58 PM
Joined: Jan 27 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JCOSTA
    replied to Getting information from website
    I was wrong! I can view the team's names in the source, but what I'm having(similar to the source but not equal.. ) does not have the team's names...
    My code is this:

    import urllib
    f = urllib.urlopen( "https://www.bwin.com/es/betsnew.aspx?Sp ortID=4")
    s = f.read()
    #print s
    f.close()
    fich=open('test .txt','w')
    fich.write(s)
    fich.close()


    Thanks
    See more | Go to post

    Leave a comment:


  • JCOSTA
    replied to Getting information from website
    I'm a newbie in web programming, but since I can see the information in a browser it should exist a way of getting that information... after all, the browser's programmer can!!

    Thanks
    See more | Go to post

    Leave a comment:


  • JCOSTA
    replied to Finding text in a string
    Simple: just type something like
    print results[index1+1:index2]

    JC
    See more | Go to post

    Leave a comment:


  • JCOSTA
    started a topic Getting information from website

    Getting information from website

    Hi!

    I want to get information from a sports web site (ex:https://www.bwin.com/pt/futebol), and I already tried htmllib and some other stuff.... the problem is that I can get the page's source code but not the same information that I can see in my browser. Particularly, I'm interested in the teams names!
    How can I do this! I can open the browser, copy the information to Notepad, save then and then process then with Python......
    See more | Go to post
No activity results to display
Show More
Working...