google code does search for code snippets, but html is no code, it is markup. what google code does is searching through as many open source projects as possible for the search term you provide. i usually use it if i try out a new library and have a look how others used it already. this normally helps to get an idea about the library and the usage in the community. if you try to search for html comments in web pages try enclosing the stuff you search for in " ' ". this could help telling google what you are after. google code is not what you are after ...
cheers lenz On Sun, Feb 8, 2009 at 10:17 AM, Sid Bachtiar <[email protected]>wrote: > > Hey Mark, > > I'm just trying out Google Code Search and initially thought that I > could use it to search for websites/webpages by their HTML source > code. E.g.: search pages where the HTML source contains > "<b>blahblahblah</b>". > > But I think Google Code Search doesn't do that (or no longer does that). > > So I'm wondering if anyone knows any search engine that does that. > > On Sun, Feb 8, 2009 at 10:13 AM, Mark S. <[email protected]> wrote: > > > > Hi Sid, > > Are you talking about looking for comments in a particular website or > > just crawling around looking at random sites for comments. You can use > > the curl library as, a request will return HTML and then, you can use > > regular expressions to look for comment structure in the DOM code. To > > randomly look at websites you need some kind of a repository of web > > addresses. Well, it is a mega task but, you can start by using some > > screen scrappers to look at web-directories and collect urls which can > > pass the results to the above code to locate particular type of > > comments. I hope this is what you were looking for. > > > > Cheers, > > Mark S. > > > > On Feb 7, 3:44 pm, Sid Bachtiar <[email protected]> wrote: > >> Hi, > >> > >> I thought initially that this is what Google Code Search does, but seems > not. > >> > >> Let say you want to find a website with certain html comments in it, > >> how would you go about doing that? > >> > >> Regards, > >> > >> Sid > >> -- > >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz > > > > > > > > > -- > Blue Horn Ltd - System Development > http://bluehorn.co.nz > > > > -- iWantMyName.com painless domain registration (finally) --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
