Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Site scraper alert: new article layout

Site scraper alert: new article layout

Scheduled Pinned Locked Moved The Lounge
c++htmlcombeta-testingjson
30 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Luc Pattyn

    Thanks for the advance notice. No problem whatsoever, I'm not scraping article pages at all. FWIW: I think it again looks better, with a more structured title block. I like the stars. Minor comments: 1. there is a bug where sometimes (had it twice in 5 visits), not sure when/how/why, a tooltip (I think it was "Discuss this article") is already showing when the page opens up, dislocating the "print", "bookmark", "discuss", "report" icons. 2. The pink background seems like a step backward, the white one was more modern IMO. I would opt for a white title box, with an orange border, and containing the new content as is (so the previous style and the latest layout). 3. the spacing between "Edit", "Delete", "Get HTML" could be improved (e.g. by adding a space and a nbsp between edit and delete) 4. The stars should support partial fill, i.e. 4.31 and 4.49 would show differently (that would take them to be rendered separately and chosen from a collection of some 6 to 11 different star symbols). :)

    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

    Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

    realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #8

    I would think he could just draw the partially filled stars dynamically, and just have two pre-drawn stars - a filled one, and an empty one.

    .45 ACP - because shooting twice is just silly
    -----
    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
    -----
    "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

    L 1 Reply Last reply
    0
    • C Chris Maunder

      To all those who have written site scrapers because I'm too snowed under to get you your API, a warning: beta.codeproject.com has the latest build and has a new article layout so if you wish to update your code to work with the new markup now's your chance. Upload as soon as I've slept.

      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #9

      I only scrape the actual article page for the original submission date (which shouold by all rights also be found in the article list page - hint, hint).

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        Hey Luc, I've been working on a who's who related app. I was originally going to do it with Silverlight, but there were cross-domain issues that I didn't want to have to deal with, so I switched over to WPF. It's not that tough (as long as Chris doesn't change the element IDs). Of course, I had to code around the fact that we're scraping web pages instead of just hitting a web service...

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #10

        John, I don't mind people scraping the WsW as long as there is no Web Service, however I'd prefer the WsW not to be mentioned in the suggestions forum any more than strictly necessary till then. I trust there is a sleeping dog proverb in English too. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

        D 1 Reply Last reply
        0
        • realJSOPR realJSOP

          I would think he could just draw the partially filled stars dynamically, and just have two pre-drawn stars - a filled one, and an empty one.

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #11

          There often are many solutions to a single problem, mentioning one often is what it takes to get it done one way or another. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

          1 Reply Last reply
          0
          • C Chris Maunder

            To all those who have written site scrapers because I'm too snowed under to get you your API, a warning: beta.codeproject.com has the latest build and has a new article layout so if you wish to update your code to work with the new markup now's your chance. Upload as soon as I've slept.

            cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

            K Offline
            K Offline
            Kanasz Robert
            wrote on last edited by
            #12

            It looks really nice. :)

            1 Reply Last reply
            0
            • L Luc Pattyn

              John, I don't mind people scraping the WsW as long as there is no Web Service, however I'd prefer the WsW not to be mentioned in the suggestions forum any more than strictly necessary till then. I trust there is a sleeping dog proverb in English too. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

              D Offline
              D Offline
              Dalek Dave
              wrote on last edited by
              #13

              Luc Pattyn wrote:

              I trust there is a sleeping dog proverb in English too.

              'When Dogs sleep, it is an excellent opportunity to lick your own balls'

              ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

              L L 2 Replies Last reply
              0
              • D Dalek Dave

                Luc Pattyn wrote:

                I trust there is a sleeping dog proverb in English too.

                'When Dogs sleep, it is an excellent opportunity to lick your own balls'

                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #14

                I thought it was; When the dog sleeps, is the best time to get your clothes on and the hell out of the house.

                Every man can tell how many goats or sheep he possesses, but not how many friends.

                D 1 Reply Last reply
                0
                • L Lost User

                  I thought it was; When the dog sleeps, is the best time to get your clothes on and the hell out of the house.

                  Every man can tell how many goats or sheep he possesses, but not how many friends.

                  D Offline
                  D Offline
                  Dalek Dave
                  wrote on last edited by
                  #15

                  Without the damn hound thinking it was time for 'Walkies'!

                  ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                  1 Reply Last reply
                  0
                  • D Dalek Dave

                    Luc Pattyn wrote:

                    I trust there is a sleeping dog proverb in English too.

                    'When Dogs sleep, it is an excellent opportunity to lick your own balls'

                    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                    L Offline
                    L Offline
                    Luc Pattyn
                    wrote on last edited by
                    #16

                    Dalek Dave wrote:

                    When Dogs sleep, it is an excellent opportunity to lick your own balls

                    I fail to see the logic in that one, however I'll take your word for it, this once. :laugh:

                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                    Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

                    D 1 Reply Last reply
                    0
                    • L Luc Pattyn

                      Dalek Dave wrote:

                      When Dogs sleep, it is an excellent opportunity to lick your own balls

                      I fail to see the logic in that one, however I'll take your word for it, this once. :laugh:

                      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                      Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

                      D Offline
                      D Offline
                      Dalek Dave
                      wrote on last edited by
                      #17

                      I didn't mean Lick, I meant Sniff! It would put a whole different perspective on it!

                      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        To all those who have written site scrapers because I'm too snowed under to get you your API, a warning: beta.codeproject.com has the latest build and has a new article layout so if you wish to update your code to work with the new markup now's your chance. Upload as soon as I've slept.

                        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                        N Offline
                        N Offline
                        NetDave
                        wrote on last edited by
                        #18

                        The code browsing feature is GREAT! :thumbsup::thumbsup::thumbsup::thumbsup::thumbsup:

                        QRZ? de WAƘTTN

                        1 Reply Last reply
                        0
                        • C Chris Maunder

                          To all those who have written site scrapers because I'm too snowed under to get you your API, a warning: beta.codeproject.com has the latest build and has a new article layout so if you wish to update your code to work with the new markup now's your chance. Upload as soon as I've slept.

                          cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                          A Offline
                          A Offline
                          Andrew Rissing
                          wrote on last edited by
                          #19

                          It actually feels a little more 'zippy' than the main site. I'm not sure if that's just because it is on a separate web farm or if it is just faster. :) Btw, what happened to the http://alpha.codeproject.com/[^] version?

                          A L 2 Replies Last reply
                          0
                          • C Chris Maunder

                            To all those who have written site scrapers because I'm too snowed under to get you your API, a warning: beta.codeproject.com has the latest build and has a new article layout so if you wish to update your code to work with the new markup now's your chance. Upload as soon as I've slept.

                            cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                            S Offline
                            S Offline
                            Slacker007
                            wrote on last edited by
                            #20

                            I noticed that when I vote for an article the stars at the top do not update unless I manually refresh the page. I also noticed that when I then bookmarked the article the stars disappeared completely and only reappeared once I refreshed the page. Windows XP SP2 w/IE 7

                            C 1 Reply Last reply
                            0
                            • A Andrew Rissing

                              It actually feels a little more 'zippy' than the main site. I'm not sure if that's just because it is on a separate web farm or if it is just faster. :) Btw, what happened to the http://alpha.codeproject.com/[^] version?

                              A Offline
                              A Offline
                              AspDotNetDev
                              wrote on last edited by
                              #21

                              Andrew Rissing wrote:

                              what happened to the http://alpha.codeproject.com/\[^\] version?

                              After over 10 years of development, Code Project Forever has finally come out of alpha. :-D

                              [Forum Guidelines]

                              C 1 Reply Last reply
                              0
                              • L Luc Pattyn

                                Please don't mention the WsW ever again. :)

                                Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

                                N Offline
                                N Offline
                                Nish Nishant
                                wrote on last edited by
                                #22

                                Oh sorry! :laugh:

                                Regards, Nish


                                My technology blog: voidnish.wordpress.com

                                1 Reply Last reply
                                0
                                • N Nish Nishant

                                  Have the Who's Who pages changed?

                                  Regards, Nish


                                  My technology blog: voidnish.wordpress.com

                                  C Offline
                                  C Offline
                                  Chris Maunder
                                  wrote on last edited by
                                  #23

                                  Apart from fixing a dumb HTML mistake John pointed out, no. (so, actually, yes. Slightly)

                                  cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                                  1 Reply Last reply
                                  0
                                  • L Luc Pattyn

                                    Thanks for the advance notice. No problem whatsoever, I'm not scraping article pages at all. FWIW: I think it again looks better, with a more structured title block. I like the stars. Minor comments: 1. there is a bug where sometimes (had it twice in 5 visits), not sure when/how/why, a tooltip (I think it was "Discuss this article") is already showing when the page opens up, dislocating the "print", "bookmark", "discuss", "report" icons. 2. The pink background seems like a step backward, the white one was more modern IMO. I would opt for a white title box, with an orange border, and containing the new content as is (so the previous style and the latest layout). 3. the spacing between "Edit", "Delete", "Get HTML" could be improved (e.g. by adding a space and a nbsp between edit and delete) 4. The stars should support partial fill, i.e. 4.31 and 4.49 would show differently (that would take them to be rendered separately and chosen from a collection of some 6 to 11 different star symbols). :)

                                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                    Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

                                    C Offline
                                    C Offline
                                    Chris Maunder
                                    wrote on last edited by
                                    #24

                                    1. I'll keep my eye open for it 2. Pink? Where? It's a light tan here. 3. Will add 4. They do. The stars are a single transparent gif. I draw a fill rectangle behind them. The stars fill up accordingly. It's not as obvious when you are close to a whole unit, but anything between 0.25 and 0.75 will show the effect.

                                    cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                                    L 1 Reply Last reply
                                    0
                                    • A AspDotNetDev

                                      Andrew Rissing wrote:

                                      what happened to the http://alpha.codeproject.com/\[^\] version?

                                      After over 10 years of development, Code Project Forever has finally come out of alpha. :-D

                                      [Forum Guidelines]

                                      C Offline
                                      C Offline
                                      Chris Maunder
                                      wrote on last edited by
                                      #25

                                      Tentatively out of alpha.

                                      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                                      1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        1. I'll keep my eye open for it 2. Pink? Where? It's a light tan here. 3. Will add 4. They do. The stars are a single transparent gif. I draw a fill rectangle behind them. The stars fill up accordingly. It's not as obvious when you are close to a whole unit, but anything between 0.25 and 0.75 will show the effect.

                                        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                                        L Offline
                                        L Offline
                                        Luc Pattyn
                                        wrote on last edited by
                                        #26

                                        More on the same: 1. it is 4 out of 7 now; I have screen shots and can reproduce: - using FF3.6, open an article in the current style (www.codeproject.com/...) - move mouse to URL textbox, edit to beta, hit ENTER (so mouse clearly is not within the article at any time) - article shows with either "Discuss this article" or "report this article as inappropriate" tooltip showing I have mailed you a screen shot. 2. OK, it is R=252,G=243,B=226; pretty close to Color.Linen 4. Noticed it now you said it; the intentions are good, however I think it would work better when the empty stars would have a thinner outline. :)

                                        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                        Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

                                        modified on Tuesday, December 7, 2010 7:16 PM

                                        C 1 Reply Last reply
                                        0
                                        • A Andrew Rissing

                                          It actually feels a little more 'zippy' than the main site. I'm not sure if that's just because it is on a separate web farm or if it is just faster. :) Btw, what happened to the http://alpha.codeproject.com/[^] version?

                                          L Offline
                                          L Offline
                                          Luc Pattyn
                                          wrote on last edited by
                                          #27

                                          Andrew Rissing wrote:

                                          what happened to the http://alpha.codeproject.com/\[^\] version?

                                          Why, they forgot to move it to the new location obviously. :)

                                          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                          Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups