Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse the real URL and not the twitter URL #49

Open
bioc0765 opened this issue Apr 1, 2018 · 1 comment
Open

parse the real URL and not the twitter URL #49

bioc0765 opened this issue Apr 1, 2018 · 1 comment

Comments

@bioc0765
Copy link

bioc0765 commented Apr 1, 2018

Give the huge outrage over fb and online tracking would it be possible to get the real link. Say example:
https://www.twitrss.me/twitter_user_to_rss/?user=naturenews Gives the xml:

    <item>
      <title>We were blown away by some of your responses to our recent Tweet about poor mental health in postgrads. It&#x27;s time the issue was given some proper attention. https://go.nature.com/2IfRNlP&#xA0;</title>
      <dc:creator> (@NatureNews)</dc:creator>
      <description><![CDATA[<p class="TweetTextSize TweetTextSize--normal js-tweet-text tweet-text"  lang="en">We were blown away by some of your responses to our recent Tweet about poor mental health in postgrads. It's time the issue was given some proper attention.  <a href="https://go.nature.com/2IfRNlP">https://go.nature.com/2IfRNlP&nbsp;</a></p>]]></description>
      <pubDate>Thu, 29 Mar 2018 14:15:08 +0100</pubDate>
      <guid>https://twitter.com/NatureNews/status/979346216378159104</guid>
      <link>https://twitter.com/NatureNews/status/979346216378159104</link>
      <twitter:source/>
      <twitter:place/>
    </item>

It would be nice if the link https://go.nature.com/2IfRNlP is placed at the item->link. Thereby twitter is bye passed.
Thanks.

Edit: It can be extracted from data-expanded-url

 | <div class="js-tweet-text-container">   | <p class="TweetTextSize TweetTextSize--normal js-tweet-text tweet-text" lang="en" data-aria-label-part="0">We were blown away by some of your responses to our recent Tweet about poor mental health in postgrads. It&#39;s time the issue was given some proper attention.<a href="https://t.co/JZRzUZPnuc" rel="nofollow noopener" dir="ltr" data-expanded-url="https://go.nature.com/2IfRNlP" class="twitter-timeline-link u-hidden" target="_blank" title="https://go.nature.com/2IfRNlP" ><span class="tco-ellipsis"></span><span class="invisible">https://</span><span class="js-display-url">go.nature.com/2IfRNlP</span><span class="invisible"></span><span class="tco-ellipsis"><span class="invisible">&nbsp;</span></span></a></p>   | </div>

@ciderpunx
Copy link
Owner

Thanks for the idea. I'm all up for twitter doing less creepy tracking, indeed
TwitRSS does already unwrap the link in the text of the tweet as per #10, so at least Twitter can't track clicks on those links.

As it stands the link refers to the original tweet on twitter rather than the link that was shared in the body of the tweet. To my mind this is what you'd expect, say from an RSS feed for a blog or website (and that was how twitter's own feeds used to work before they axed them). You want to be able to click on one of the feed items and end up at the original source.

Also:

  • if you tweet something that contains no link, it wouldn't be clear where the link in the feed should go.
  • If you tweet something containing multiple links, you'd have to rely on convention to decide which one should become the link (eg. choose the first). People would almost undoubtedly get confused and expect a different link to be used than the one we chose.
  • If you wanted to find the original tweet, I guess you'd have to do something like copy/paste the text into twitter's search or something, which would be annoying.

I'll leave this ticket open for a bit to see if anyone else wants to chip in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants