Woogle
h
AdCharity (1322)

Preface: the only links in there are google, some bing stuff, repl, and stack overflow

Stuff

Need I say more? The fake search engine is here. It's pretty much missing the most critical parts of an engine (like pagination, mobile support, and indexing) but I think it captures the essence of finding link matches.

Fork

You can fork the project and take a look at config.js so you can input your own types of links (the crawler will crawl all links and then crawl those links etc.) It's fairly unstable since I used request and cheerio for images and the crawler crashes but oh well.

Updates

  • Featured right now: image and link search
  • Coming: pagination, indexing, mobile support (if I don't abandon the project)
  • Update 1: images that don't work are removed
  • Update 2: Scraping slightly better (still bad)
  • Update 3: Matches partial matches (like spaces in between)
You are viewing a single comment. View All
xxpertHacker (930)

Is this still being updated?

Also, the JavaScript in {./views/script/script.js} that is being used on {./views/index.ejs} is unnecessary.
The index could just be an HTML form with {action="/search"} and the input with {name="query"}, and the {if(!query || query == "")} could simply be a {required} attribute. This would allow it to work with browsers or clients who block the execution of JavaScript. Super basic javaScript-less example that directs to Woogle: https://repl.it/@StudentFires/Woogle
Btw, I figured out that your "I'm feeling lucky button" doesn't work.

AdCharity (1322)

@StudentFires lmao yeah I'll try to update it over the code jam

AdCharity (1322)

@StudentFires the i'm feeling lucky button just redirects you the the url in the thing 4 now

xxpertHacker (930)

@AdCharity Is there any use for the "type" query/argument in the search?

AdCharity (1322)

@StudentFires I kind of forgot anything I wrote for this ngl

xxpertHacker (930)

@AdCharity Well, should I just fork it and update it myself? Could end up making a stealth browser, no client-side scripts, no cookies, no traces, no stored data.

AdCharity (1322)

@StudentFires go for it, though if you do decide to take a large component of the code give credit plz :P