obsidienne

obsidienne

Lib to analyze url

Hi,

My app allows users to store url.
As an example, for a song, a use can store a link to YouTube, Deezer, Spotify, iTunes, etc…

Do you know a lib capable of extracting the provider (Deezer, Spotify,…), the provider is (like the video I’d in YouTube), maybe more like the publication date ?

Thanks

Most Liked

yurko

yurko

Erlang can parse a URL to extract host:

:http_uri.parse 'http://erlang.org/doc/man/http_uri.html#parse-1'
{:ok, {:http, [], 'erlang.org', 80, '/doc/man/http_uri.html', []}}
hauleth

hauleth

You can use Elixir for that as well via URI module. It will return Elixir struct instead of tuple though.

Last Post!

obsidienne

obsidienne

Yeah, sure.
I juste have found https://iframely.com

It’s really near my use case

Where Next?

Popular in Questions Top

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36820 110
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New

We're in Beta

About us Mission Statement