Share your repls and programming experiences

← Back to all posts
Woogle
h
AdCharity (1270)

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)
Commentshotnewtop
MrEconomical (2203)

incredible job making something as complex as this! I can't wait to see what else you do in the future!

Zexogon (905)

WOOGLE WANTS TO KNOW YOUR LOCATION

[deleted]

Yay! Woogle know me locate! @Zexogon

sugarfi (489)

@Zexogon The Soviet government wants to: know if you have ever disrepespected our mighty leader Josef Stalin.

WyattKeenan (19)

418 results for Google. Let's bump it up a teeny bit.

StudentFires (341)

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 (1270)

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

AdCharity (1270)

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

StudentFires (341)

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

AdCharity (1270)

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

StudentFires (341)

@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 (1270)

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

RogueHalo (401)

The power I had. (great job on 1000 cycles btw :))

Nettakrim (380)

disappointed with the lack of cute cat images...

StudentFires (341)

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.

AdCharity (1270)

@StudentFires ha I'll be updating but I'm not turning to Google anytime soon

StudentFires (341)

@AdCharity "Anytime soon," it's okay, we have time. We believe in you!

cgolden15 (187)

Absolutely amazing, however, one cool thing you could do is make the "I'm feeling lucky" button actually rotate just like the real one.

LukeShomper (49)

@AdCharity Is it ok if I copy the code and try to figure out how it works?

AdCharity (1270)

@LukeShomper It's all open source :P Later on though, if you ever decide to share the project, please give some credit to me.

Lethdev2019 (86)

Just tested your site for any xss injection/vulnerabilities, all is good and secure.

AdCharity (1270)

@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

Lethdev2019 (86)

btw did you update the crawler?
@AdCharity

Lamby777 (55)

you're a cool kid on the plogo discord

AJSullivan (2)

Wowza, this is so crazy!

Highwayman (1367)

Oo adcharity answer, like, 2 questions and you’ll have 1000!!! :P

AdCharity (1270)

@Highwayman I'm making a 1,000 cycle special but it'll be mainly for developers (and not for fun usage)

Highwayman (1367)

@AdCharity cool!
When you think about it, that’s still fun lol.

[deleted]

i searched up owo and got whatsapp blog

Lethdev2019 (86)

seems the crawler keeps crashing

AdCharity (1270)

@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

Lethdev2019 (86)

maby another error.catch would work? @AdCharity

AdCharity (1270)

@Lethdev2019 the request module is both unstable and depreciated so I'll probably change it soon (catch does not work on failed requests)

[deleted]

Oh no you copied Google

sugarfi (489)

Bit of a bug: when a link contains HTML entities, they are not rendered.

AdCharity (1270)

@sugarfi oh ok I'll change it to render escaped values

Zexogon (905)

i love this for real this time have an upvote hope you get 1000 soon! :D

AdCharity (1270)

@Zexogon unfortunately, it looks like only another lit project is going to push me over 1000

AdCharity (1270)

@Zexogon wait how are you a moderator

Zexogon (905)

do you track the searches?

Coder100 (4393)

Nice!
Finally, something that uses EJS too...

<% while (true){ %>
<% votes++ %>
<%= votes %>
<% } %>
[deleted]

:O I never knew there was that [email protected]

Coder100 (4393)

Lol it's a templating language so it's just JavaScript * html * lazy * server @CodeABC123

[deleted]

Oh no the server is lazy @Coder100

maazzubair99 (125)

lol my district already blocked it

maazzubair99 (125)

@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

[deleted]

That’s sad. Actually, that’s the same with my school. @maazzubair99

JORDANSISNEY (4)

I always think I'm getting good at programming, and someone comes along and makes something like this XD It's so amazing!!!! :D

JordanDixon1 (310)

How do you add websites to this?

AdCharity (1270)

@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)

JordanDixon1 (310)

@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.

AdCharity (1270)

@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.)

pipythonmc (3)

This is awesome! I feel that this is already a great search engine. Keep up the good work!

LiamDonohue (283)

uh i forked it but it just says run repl for output after i ran it

AdCharity (1270)

@LiamDonohue wut If you want to add links you have to go to config.js and add them from there (and turn on dev)

LiamDonohue (283)

in what place do I put links? @AdCharity

AdCharity (1270)

@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)

GabeEE (4)

ah yes, w o o g l e