question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when item contains many "link" fields

See original GitHub issue

Having a issues where the RSS feed contains the following

<link rel="replies" type="application/atom+xml" href="http://testing.googleblog.com/feeds/3343661551924942594/comments/default" title="Post Comments" />
<link rel="replies" type="text/html" href="http://testing.googleblog.com/2017/07/evolution-of-gtac-and-engineering.html#comment-form" title="4 Comments" />
<link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/3343661551924942594" />
<link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/3343661551924942594" />
<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/ptSfzdHRC4s/evolution-of-gtac-and-engineering.html" title="Evolution of GTAC and Engineering Productivity" />


It would be nice if i could specify that the link i want is the type=“text/html”

right now all i get it

{
	"link": "http://testing.googleblog.com/feeds/3343661551924942594/comments/default",
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WorldWideWebbcommented, Feb 1, 2019

Just ran into this issue as well - I have a feed where each item has 2 link tags:

<link rel="alternate" type="text/html" href="http://page.html"/>

<link rel="enclosure" href="http://image.jpg" length="222384" type="image/jpg"/>

I need to be able to grab the second one (need to target the image url in that one. Is there a way to do that?

0reactions
lakshminarasimhan93commented, Jan 29, 2021

You can try using the customFields option with keepArray: true.

If that doesn’t work, I’d be happy to accept a PR that adds this. Maybe set item.links on line 135 of ./lib/parser.js

can you share the code snippet , tried as per document , but it it fetches only 1 link tag, I want to fetch link with rel=“enclosure”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Guide to table relationships - Microsoft Support
A table relationship works by matching data in key fields — often a field with the same name in both tables. In most...
Read more >
Link Model with Extra Fields - SQLModel
Let's say that we want to have an extra field/column to say if a hero is still training in that team or if...
Read more >
Linked List in a Data Structure: All You Need to Know
A linked list consists of a data element known as a node. And each node consists of two fields: one field has data,...
Read more >
Linking to one, many, or a subset of records - Airtable Support
This article details how to use linked records to connect information from one table to another. Linking to a record.
Read more >
Linked List - Data Structure and Algorithms - Tutorialspoint
Linked List contains a link element called first. · Each link carries a data field(s) and a link field called next. · Each...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found