Woogle
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)
WOOGLE WANTS TO KNOW YOUR LOCATION
Yay! Woogle know me locate! @Zexogon
@Zexogon The Soviet government wants to: know if you have ever disrepespected our mighty leader Josef Stalin.
418 results for Google. Let's bump it up a teeny bit.
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.
@StudentFires lmao yeah I'll try to update it over the code jam
@StudentFires the i'm feeling lucky button just redirects you the the url in the thing 4 now
@AdCharity Is there any use for the "type" query/argument in the search?
@StudentFires probably not
@StudentFires I kind of forgot anything I wrote for this ngl
@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.
@StudentFires go for it, though if you do decide to take a large component of the code give credit plz :P
@JacksonCowie :P Wooogle
disappointed with the lack of cute cat images...
So, from what I'm getting, you're going to take on all of Google, on your own? Good luck, I want to see when it's done.
@StudentFires ha I'll be updating but I'm not turning to Google anytime soon
@AdCharity "Anytime soon," it's okay, we have time. We believe in you!
Absolutely amazing, however, one cool thing you could do is make the "I'm feeling lucky" button actually rotate just like the real one.
@cgolden15 sure I'll try soon
@AdCharity Is it ok if I copy the code and try to figure out how it works?
@LukeShomper It's all open source :P Later on though, if you ever decide to share the project, please give some credit to me.
@AdCharity will do
@Lethdev2019 uh my site doesn't even take user input and store it/display to others so it's reasonable to say that you wouldn't be able to hack something
btw did you update the crawler?
@AdCharity
you're a cool kid on the plogo discord
Wowza, this is so crazy!
Oo adcharity answer, like, 2 questions and you’ll have 1000!!! :P
@Highwayman I'm making a 1,000 cycle special but it'll be mainly for developers (and not for fun usage)
@AdCharity cool!
When you think about it, that’s still fun lol.
i searched up owo and got whatsapp blog
seems the crawler keeps crashing
@Lethdev2019 yeah it either means the links you're using have firewalls of some sort or the link isn't valid. Try removing the image crawl part; that's the part that crashes the most
maby another error.catch
would work? @AdCharity
@Lethdev2019 the request module is both unstable and depreciated so I'll probably change it soon (catch does not work on failed requests)
Oh no you copied Google
@sugarfi oh ok I'll change it to render escaped values
This reminds me of Mango...
@AdCharity get the vpn
i love this for real this time have an upvote hope you get 1000 soon! :D
@Zexogon unfortunately, it looks like only another lit project is going to push me over 1000
@Zexogon wait how are you a moderator
@Zexogon zave helped me
do you track the searches?
Nice!
Finally, something that uses EJS too...
<% while (true){ %>
<% votes++ %>
<%= votes %>
<% } %>
:O I never knew there was that [email protected]
Lol it's a templating language so it's just JavaScript * html * lazy * server @CodeABC123
Oh no the server is lazy @Coder100
no the coder is lazy :P @CodeABC123
lol my district already blocked it
@AdCharity they check urls for specific terms like search, and block the url. and because you used a custom url with search in it, they blocked it
That’s sad. Actually, that’s the same with my school. @maazzubair99
I always think I'm getting good at programming, and someone comes along and makes something like this XD It's so amazing!!!! :D
How do you add websites to this?
@JordanDixon1 fork it and go to config.js and type in the links you want (it crawls every link it finds as well, so one is fine)
@AdCharity I see https://google.com and thats the only link on there. Whenever I search something nothing shows up though. I can look up repl.it though.
@JordanDixon1 bruh ok so config.js sets the crawler settings and adds more links. The testing.js in the database file has all the links you could search (which is stack overflow, google, repl, etc.)
Amazing.
This is awesome! I feel that this is already a great search engine. Keep up the good work!
uh i forked it but it just says run repl for output after i ran it
@LiamDonohue wut If you want to add links you have to go to config.js and add them from there (and turn on dev)
in what place do I put links? @AdCharity
@LiamDonohue you can manually add links in database/testing.json or you can crawl for links in config.js (set dev = true and then crawl for a desired link)
LOL AMAZING
ah yes, w o o g l e
incredible job making something as complex as this! I can't wait to see what else you do in the future!