My First Python Application

It’s been two months since I started learning python on my own. It all starts from the bottom of my heart, about what I really want to learn. To be honest, I genuinely feel that I’ve enjoyed this journey.

After reading related books and videos for quite a long time, I decided to get hands on the practice, which is more difficult as expected.

What drives me to write this small application is that I love watching sports games and I often checked a website, which is “www.zhibo8.cc”, to see what games are on live today. However, I found this action repetitive and a waste of time opening my website, selecting the bookmark and then scrolling down to the part which I want. I have tried several modules for web scraping and this time I chose to use BeautifulSoup to get the web page. Therefore, this module’s code is as follows:

It works pretty well and shows me what I need in the console. But after I came to the U.S., it started to raise an error saying the variable “today” is Nonetype. After debugging, I found it kind of funny because it is due to the time zone difference. Variable “i” here represents today in the U.S. while sometimes in China it is one day later. Obviously, the website “zhibo8” will delete all the live games information at the end of the day. So if I am lucky enough to run this application at night in Los Angeles, when it is tomorrow morning in China, I will encounter this error.

I plan to figure out a way to solve this problem later, and I am quite satisfied with my first executable python file after two months.

88 Comments

  1. Nydia says:

    Don’t worry about uses, if you are concerned with the company’s online status advance stability to
    safeguard your personal data.

  2. Lara says:

    Hey There. I found your blog using msn. This is a very well written article.
    I’ll be sure to bookmark it and return to read more of your
    useful information. Thanks for the post. I’ll definitely comeback.

    1. flyws says:

      Thanks! I am busy for my graduate study these days but I am sure I will keep writing!

  3. Nancee says:

    Attractive part of content. I just stumbled upon your
    web site and in accession capital to say that I acquire in fact enjoyed account your weblog posts.
    Any way I will be subscribing to your augment or even I fulfillment you get admission to consistently rapidly.

    1. flyws says:

      Thanks!

  4. You should be a part of a contest for one of
    the most useful sites on the internet. I will highly recommend this web site!

    1. flyws says:

      Thanks for you visiting!

  5. I am really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a great blog like this one these days.|

  6. Belen says:

    I’m not certain the place you are getting your information, but
    good topic. I needs to spend a while finding out much more or understanding more.
    Thank you for wonderful information I was in search of this information for my mission.

  7. Hi would you mind letting me know which webhost you’re utilizing?
    I’ve loaded your blog in 3 completely different internet browsers and I must
    say this blog loads a lot faster then most.

    Can you suggest a good web hosting provider at a fair price?

    Kudos, I appreciate it!

    1. flyws says:

      I am using http://www.cloudleft.com, which is a Chinese company. 🙂

  8. car repairs says:

    Hey, I think your blog might be having browser compatibility issues.
    When I look at your website in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that, amazing blog!

    1. flyws says:

      Really? I mainly use Safari and Chrome for testing and have never noticed that. I’ll take a look. Thanks bro!

  9. Diana says:

    You actually make it appear so easy along with your presentation but I find this topic to be actually
    one thing which I think I’d never understand. It kind of
    feels too complicated and extremely extensive for me.

    I am taking a look ahead to your subsequent put up, I will try to get the dangle of it!

    1. flyws says:

      I believe you’ll find it easy after you see the example on beautifulsoup official website and get a little hang of regular expressions. Don’t be afraid of challenges especially if you are not a CS expert! 🙂

  10. Stuart says:

    I am really enjoying the theme/design of your website.
    Do you ever run into any browser compatibility problems?

    A small number of my blog readers have complained about my blog not working correctly in Explorer but looks great
    in Firefox. Do you have any suggestions to help fix this problem?

    1. flyws says:

      I believe it is due to IE blocking some plugins by default. I don’t know exactly why because the new Edge browser seems to perform fine. Is that because of the old version of IE?

  11. I was able to find good info from your content.

  12. Jasmin says:

    What’s up to every single one, it’s in fact a nice for me to pay a quick visit this site,
    it consists of helpful Information.

  13. Matt says:

    Hey would you mind sharing which blog platform
    you’re using? I’m planning to start my own blog soon but I’m having a difficult time choosing between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most
    blogs and I’m looking for something completely unique.
    P.S Sorry for being off-topic but I had to ask!

    1. flyws says:

      I am not familiar with those platforms you mentioned except WordPress. I have some good friends who are software developers and they told me if the blog is about technology or technical stuff, use WordPress or make one on your own. I would say this statement is a bit aggressive but I do could control a lot in WordPress with setting panel or raw codes. To be unique, just pick one theme and install it, you can definitely find one creator who is as cool as you. 🙂

  14. Shari says:

    This is a topic that is close to my heart… Cheers!
    Where are your contact details though?

    1. flyws says:

      Thanks! They are right at the top five circle buttons, and I don’t realize it might be difficult to figure out for readers……

  15. Flor says:

    Do you mind if I quote a few of your posts as long as I provide credit and sources back to
    your webpage? My website is in the very same area of interest as
    yours and my visitors would truly benefit from a lot of the information you provide here.
    Please let me know if this alright with you. Thanks a lot!

    1. flyws says:

      Sure. As long as you provide the source information.

  16. Samuel says:

    It’s difficult to find knowledgeable people in this particular topic, but you sound like you know what you’re talking about!
    Thanks

  17. Great weblog here! Also your site loads up
    fast! What host are you the use of? Can I am getting your affiliate hyperlink for your host?
    I wish my web site loaded up as fast as yours lol

  18. Hiram says:

    You should take part in a contest for one of the greatest
    blogs on the web. I most certainly will recommend this site!

  19. Do you have a spam issue on this site; I also am a blogger, and I
    was wondering your situation; many of us have created some nice practices and we
    are looking to trade strategies with others, why not
    shoot me an email if interested.

  20. Oscar says:

    Woah! I’m really digging the template/theme of this site.

    It’s simple, yet effective. A lot of times it’s very difficult to get
    that “perfect balance” between superb usability
    and visual appeal. I must say you’ve done
    a fantastic job with this. In addition, the blog loads super fast for me on Opera.
    Excellent Blog!

  21. Latrice says:

    Hey would you mind letting me know which web host you’re working with?
    I’ve loaded your blog in 3 different browsers and
    I must say this blog loads a lot faster then most. Can you recommend a good internet hosting provider
    at a honest price? Thanks a lot, I appreciate it!

  22. Alba says:

    This post provides clear idea for the new visitors of
    blogging, that in fact how to do running a blog.

  23. Ofelia says:

    This website really has all the information and facts I needed concerning
    this subject and didn’t know who to ask.

  24. Jim says:

    Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out
    a lot. I hope to give something back and help others
    like you aided me.

  25. Oscar says:

    Spot on with this write-up, I seriously believe this web site needs far
    more attention. I’ll probably be back again to read through
    more, thanks for the information!

  26. I must thank you for the efforts you’ve put in writing this site.
    I really hope to see the same high-grade content by you later on as well.
    In fact, your creative writing abilities has inspired me to get my very own site
    now 😉

  27. other says:

    I just want to mention I’m beginner to blogging and site-building and honestly liked this blog site. Likely I’m want to bookmark your blog post . You really have very good articles and reviews. Thanks a lot for sharing your web site.

  28. excellent points altogether, you simply gained a new reader.
    What would you recommend in regards to your post that you just made some days ago?
    Any positive?

  29. Wow! At last I got a blog from where I be capable of
    truly get helpful data regarding my study and knowledge.

  30. The 67 Steps says:

    I’m not certain where you are getting your information, but great topic.
    I must spend a while studying much more or figuring out more.
    Thank you for excellent info I was on the lookout for this information for my mission.

  31. This post will assist the internet users for building up new web site or even a blog from
    start to end.

  32. Devon says:

    I absolutely love your website.. Pleasant colors
    & theme. Did you make this web site yourself?
    Please reply back as I’m trying to create my own site and want to find out where you got this from or exactly what the theme is called.
    Thank you!

  33. tmixes says:

    Woah! I’m really loving the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s very hard
    to get that “perfect balance” between superb usability and visual appeal.
    I must say you’ve done a excellent job with this.
    Also, the blog loads very fast for me on Opera.
    Excellent Blog!

  34. Franklin says:

    Fantastic beat ! I would like to apprentice while you amend
    your web site, how can i subscribe for a blog site? The account helped me a acceptable deal.
    I had been tiny bit acquainted of this your broadcast offered bright clear concept

  35. Tai Lopez says:

    I just couldn’t depart your site prior to suggesting that I really loved the usual info a person provide on your visitors?
    Is gonna be back continuously in order to check up on new posts

  36. I am regular reader, how are you everybody? This piece of
    writing posted at this web page is really good.

  37. You have made some decent points there. I checked on the web to
    find out more about the issue and found most individuals will go along with your views
    on this web site.

  38. Very quickly this site will be famous amid all blogging viewers, due to it’s fastidious posts

  39. Right here is the right website for everyone who really wants to find out about this topic.
    You know so much its almost hard to argue with you (not that I really will need to…HaHa).
    You certainly put a new spin on a topic that’s been discussed for ages.
    Great stuff, just wonderful!

  40. This iis a topic that’s close to my heart… Best wishes!
    Exactly where are your contact details though?

  41. Lois says:

    Hello there! This is kind of off topic but I need some guidance from an established blog.
    Is it very hard to set up your own blog? I’m
    not very techincal but I can figure things out pretty quick.

    I’m thinking about creating my own but I’m not sure where to start.
    Do you have any tips or suggestions? Thanks

  42. Thankfulness to my father who shared with me on the topic of
    this website, this blog is genuinely amazing.

  43. I read this piece of writing fully on the topic of the comparison of hottest and
    previous technologies, it’s remarkable article.

  44. It is in reality a grat and helpful piece of
    information. I am glad thaat you simply shared this ueful
    information wkth us. Please keep us up to date like this.
    Thanks for sharing.

  45. I like the helpful info you provide in your articles.
    I’ll bookmark your blog and check again here regularly.
    I am quite certain I’ll learn lots of new stuff right here!
    Best of luck for the next!

  46. Howdy I am so excited I found your site, I
    really found you by error, while I was searching
    on Yahoo for something else, Anyhow I am here now and would just like to say many thanks
    for a tremendous post and a all round exciting blog (I also love the theme/design), I don’t have
    time to read through it all at the moment but I have bookmarked it and also added
    in your RSS feeds, so when I have time I will be back too read a lot more, Please do keep up the fantastic
    jo.

  47. Can I simply just say what a relief to find an individual who really understands what they are talking about
    on the web. You definitely realize how to bring an issue to light and make it important.
    More and more people have to look at this and understand this side of the story.
    I can’t believe you are not more popular given that you certainly possess
    the gift.

  48. Gary Sherwin says:

    Magnificent beat ! I would like to apprentice whilst you amend your web site,
    hoow could i subscribe for a weblog web site? Thee account
    helped me a acceptable deal. I were a little bit
    familiar of this your broadcast provided vibrant transparent concept

  49. Excellent beat ! I would like to apprentice while you amend
    your website, how could i subscribe for a blog site?
    The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear idea

  50. I have to thank you for the efforts you have put in writing this site.
    I really hope to see the same high-grade content by you later on as well.
    In truth, your creative writing abilities has inspired me to get my own site now
    😉

  51. excellent put up, very informative. I wonder why the other experts of this sector
    don’t understand this. You must continue your writing. I am confident, you have a great readers’
    base already!

  52. I’m extremely impressed with your writing skills and also with the structure to your weblog.
    Is this a paid subject or did you customize it yourself?
    Either way stay up the nice quality writing, it is
    uncommon to look a great blog like this one these days..

  53. Generally I do not learn post on blogs, however I wish to say that this write-up very pressured
    me to try and do it! Your writing style has been amazed me.
    Thanks, quite nice article.

  54. Excellent beat ! I wish to apprentice while you amend
    your website, how can i subscribe for a blog
    web site? The account aided me a acceptable deal.
    I had been a little bit acquainted of this your broadcast offered
    bright clear idea

  55. WOW just what I was searching for. Came here by searching for rosary achieves enormous

  56. I’ll immediately take hold of your rss as I can not to find your
    email subscription hyperlink or e-newsletter service.
    Do you have any? Kindly allow me know so that I may subscribe.
    Thanks.

  57. I simply want to mention I am very new to blogs and seriously savored this web page. Most likely I’m likely to bookmark your blog post . You really have wonderful posts. Thank you for sharing with us your web-site.

  58. TiaJMulhearn says:

    Hi there friends, its fantastic article concerning cultureand
    completely defined, keep it up all the time.

  59. I have read several good stuff here. Certainly worth bookmarking for revisiting.
    I surprise how much effort you set to create this type
    of great informative web site.

  60. Very energetic post, I loved that bit. Will there be a part 2?

  61. If some one desires to be updated with most recent technologies therefore he must be pay a visit this website and be up to
    date all the time.

  62. What’s Happening i’m new to this, I stumbled upon this I have found It positively helpful and it
    has helped me out loads. I’m hoping to contribute & aid different
    customers like its aided me. Good job.

  63. Thanks , I have just been searching for information approximately this topic for
    a long time and yours is the greatest I’ve discovered till now.
    But, what in regards to the bottom line? Are you positive concerning the
    source?

  64. Thanks for your marvelous posting! I certainly enjoyed reading it, you
    may be a great author.I will make certain to bookmark your blog and definitely
    will come back later on. I want to encourage you to definitely continue your great job, have
    a nice evening!

  65. Hello, of course this paragraph is actually good and I have learned lot of things from it about blogging.
    thanks.

  66. Very energetic blog, I enjoyed that bit. Will there be a part
    2?

  67. TylerPHehn says:

    Hi there, of course this paragraph is in fact nice and I
    have learned lot of things from it on the topic
    of blogging. thanks.

  68. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your weblog?

    My blog site is in the very same area of interest as yours and my
    users would definitely benefit from some of the information you provide here.
    Please let me know if this okay with you. Thanks a lot!

  69. A big thank you for your blog article. Much obliged.

  70. SamNPatlan says:

    Hi i am kavin, its my first occasion to commenting anyplace, when i read this paragraph i thought i could
    also create comment due to this sensible article.

  71. RamonQRutten says:

    Remarkable! Its actually remarkable post, I have got much clear idea on the topic of from this piece of writing.

  72. JimmyGGumbel says:

    May I simply just say what a relief to find somebody that genuinely understands what they are talking about over the internet.
    You actually understand how to bring a problem to light and make it important.
    More people really need to read this and understand this side of your story.
    I was surprised you’re not more popular because you definitely
    have the gift.

  73. WarrenQLilja says:

    I need to to thanks for this great read!!
    I certainly loved every tiny amount of it. I have got got you bookmarked to look into new stuff
    you post

  74. Ebony says:

    Keep on working, great job!

  75. article says:

    I just want to mention I’m very new to blogging and seriously enjoyed this web site. Most likely I’m going to bookmark your site . You definitely have perfect articles and reviews. Regards for sharing with us your website page.

  76. AllieZUltseh says:

    What’s Occurring i’m new to this, I came across this We have discovered It positively useful and features helped me out loads.
    I am hoping to provide a contribution & assist different customers like its helped me.
    Good job.

  77. KatiaEDach says:

    Wow, awesome blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look
    of your web site is fantastic, as well as the content!

  78. KandyKInzana says:

    What’s up, all the time i used to check blog posts here
    in the early hours in the daylight, as i love to find out more and more.

Leave a Reply

Your email address will not be published. Required fields are marked *