paint-brush
Participating in Product Hunt Global Hackathon — Days 13 and 14by@k_ivanow

Participating in Product Hunt Global Hackathon — Days 13 and 14

by Kristian IvanovNovember 15th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

can be found here -&gt; <a href="https://hackernoon.com/participating-in-product-hunt-global-hackathon-days-1-to-11-676ce0db6e63" target="_blank">https://hackernoon.com/participating-in-product-hunt-global-hackathon-days-1-to-11-676ce0db6e63</a>

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Participating in Product Hunt Global Hackathon — Days 13 and 14
Kristian Ivanov HackerNoon profile picture

Days 1 to 11

can be found here -> https://hackernoon.com/participating-in-product-hunt-global-hackathon-days-1-to-11-676ce0db6e63

Day 12

rest and minor fixes, reported by users

Day 13

Gamayun was able to search and summarize things. It was time for the next step — summarize web pages! It turned out that this is actually pretty complicated. There are several chrome extensions that simplify web pages to more print friendly versions. None of them however seemed to work the way I wanted so I decided to try and find a way to be able to extract text from online articles. It took some time. On day 13 I stayed up till 2AM. It still didn’t work….

Day 14

I kept trying. PHP DOMDocument is pretty awesome and easy to use. Despite that websites have different DOM structures. Actually they don’t have anything in common. After additional 5 hours I managed to make it work. It took a lot of combination of parentNode, childNode, texts comparisons, number of children and a so many other things, but I have tested it with several websites and it seems to work.

https://www.theverge.com/

https://www.bloomberg.com/europe

https://arstechnica.com/

https://hackernoon.com/

My sleep deprived brain couldn’t think of anymore websites to test it on, but it is live and online on http://birdofknowledge.com so if anyone finds website that it doesn’t work on, just let me know and I will fix it.

Next

I will be attempting to add user accounts in the next few days. We’ll see how it will turn out.

Prologue

If you are a participant in the hackathon I would love to hear your impressions of the hackathon and this article and whether or not our journeys so far had anything similar.

And of course anyone is more than welcomed to subscribe for Gamayun here — https://www.producthunt.com/upcoming/gamayun, test it, tweet to it and whatever else you can think of :)