I am using Yahoo pipes to take an RSS feed from Reddit to later combine with other feeds.
The link for the item redirects back to Reddit. I would like it to redirect to the actual content.
In order for me to do so, I need to extract a hyperlink from item.description and replace item.link with it.
http://i.stack.imgur.com/kYJZf.png
I know that I need to use the Regex module to do this.
I've tried different variations of regex commands I've found elsewhere on Stack Overflow, but I can't get them to do what I need.
Would anyone know how I can replace item.link with the URL from item.description?
For anyone else struggling with the Yahoo pipes, this is how you do it
Start with the module for "Fetch Xpath"
Enter the URL, in this case https://www.reddit.com/r/unitedkingdom
Go to the URL and click "view source" in your browser (F12 in Chrome)
Select the path to the "frame" that holds all the Reddit posts. In this case it is: //*[#id="siteTable"]/div
Next module - "Create RSS"
Title: item.div.1.p.0.a.content
Link: item.div.1.p.0.a.href
By default, the Reddit link was "item.div.1.ul.li.0.a.href" which will direct you to the Reddit comments section, but the link to the content that I wanted was under "item.div.1.p.0.a.href".
This will then create an RSS feed with Title and then a link directly to the content, not the Reddit comments section.
Related
I have an interactive grid where one of the columns is a url link to a picture.
Now I want some way to click on that link and open up that link.
Except the URL links in APEX demand a static link. Also, they open up over the open window, instead of another window or another tab.
I have gone through my options, googled for a couple hours, tried to perhaps find a solution that used a DA after clicking on the field and then a JS to redirect to the URL. But my google-fu is apparently not strong enough, and so I turn to you, good people of Stackoverflow.
What I want is a link inside an interactive grid which when clicked, redirects to a URL that it gets from a column in the IG.
Set you link column like this.
"ENAME" is a column.
Example: https://apex.oracle.com/pls/apex/f?p=150297:30:::NO:::
I'm building a site with the new version of Wagtail (2.0) and when I try to add an internal link (a link to another page in my website) in a blog post using the Rich Text Editor, the hyperlink tags are stripped out and just the link text is showing. The code that gets rendered is <a id="5" linktype="page">sample page</a>.
If I add an external link, and set it to /sample-page/ then the hyperlink works as expected.
Does anyone know why this is happening?
When you output a rich text field on your template, you need to run it through the |richtext template filter:
http://docs.wagtail.io/en/v2.0.1/topics/writing_templates.html#rich-text-filter
This is because rich text is stored as a 'symbolic' variation of HTML, where items such as page links and images are represented as IDs rather than full URLs - this ensures that they won't break if a page is moved or renamed, for example. The |richtext filter is necessary to translate that symbolic HTML back to real HTML.
I just need some help in pointing me in the right direction. I have no issue with research but I don't know where to start!!! I want to make a program that uses a websites search function, but doesn't display the page. It will save the page and scan the HTML for a specific string and display it.
Would it work better to display the page in the background and search it, this way I don't have to save anything??
Where do I start??
A web page is mostly simple text. You can download a page with cURL and search it pretty much like you would any other text. If you don't want to search the contents of the tags, you'd want to search after parsing.
My page has meta information
og:title
og:category
og:price
Is it possible to display those information when one shares the like on his wall? how? from what I tried on the and the actual url + img are shown in the post:
John recommends Title on MyApp.
thank you
No, there's no way to include key/value pairs in a regular feed post - if you're posting Open Graph actions you can have some properties of the object displayed in the feed stories but this isn't possible when supplying the feed data yourself.
See the Open Graph docs for more info
I have recommend buttons setup for articles in a blog. My OpenGraph meta tags are setup and checking the url on the facebook debugger shows the expected information (shown below obfuscated)
fb:app_id xxx
og:url http://example.com/blog/title-of-artilce
og:type article
og:title Title of article
og:image *correct image*
og:description *description*
og:site_name Sitename
og:updated_time 1326303278
However, in the user's wall, the image is not shown & the URL is shown relative to facebook:
http://www.facebook.com/blog/title-of-blog
The problem is identical whether the recommend is on the actual page, or located on a different page with a URL directing to the page. The 'like' count functions as expected.
The updated time above shows that it shouldnt be a cache problem.
Any help appreciated.
* SOLVED * - URL submitted to button was relative rather than absolute.
Silly mistake on my part.. The links in OG were not fully qualified URIs ..
So, /foo/bar was being translated to http://facebook/foo/bar