laarcnew | comments | discord | tags | ask | show | place | submitlogin

I like the feature where you put the URL in to submit then it automatically fetches the title for you.


4 points by shawn 993 days ago

Ok, you can now click "suggest title" on the submit page.

Here's the commit: https://github.com/shawwn/arc3.2/commit/c3fbfa1e0c8ac9b6cf6857aec1fd69277fe64bb2

-----

3 points by shawn 993 days ago

Good idea! How does lobsters do it? I see that it has something to do with fetch-url-attributes: https://github.com/lobsters/lobsters/blob/11592ac0a6d28e7b935fe6b78e3e5821a45d2af3/app/controllers/stories_controller.rb#L63-L69

FWIW, the laarc bookmarklet (https://www.laarc.io/bookmarklet.html) does this for you, but frustratingly Chrome recently made it impossible to install bookmarklets by dragging and dropping them onto the toolbar. I'll try for a lobsters-esque solution.

EDIT: Found the algorithm lobsters uses: https://github.com/lobsters/lobsters/blob/11592ac0a6d28e7b935fe6b78e3e5821a45d2af3/app/models/story.rb#L890-L971

-----




Welcome | Guidelines | Bookmarklet | Feature Requests | Source | Contact | Twitter | Lists

RSS (stories) | RSS (comments)

Search: