yahoo-pipes

How do I pass a Yahoo Pipes item into a YQL query?

青春壹個敷衍的年華 提交于 2019-12-22 11:35:43
问题 One common thing to want to do in the Yahoo Pipes YQL element is pass in a Pipes value to the YQL query. For example: select * from html.tostring where url='<someurl>' and xpath='//div[@id="foo"]' and you want to pass in a dynamic value for <someurl> . Let's say that it's an RSS feed item's URL called item.link . Attempting to simply replace the quoted someurl with item.link gives you this error: Invalid identifier item.link. me is the only supported identifier in this context How can I pass

post forms with yahoo pipes?

▼魔方 西西 提交于 2019-12-22 01:30:01
问题 is it possible to submit forms with yahoo pipes? i basically need to log in somewhere, and get some stuff from the members area of a website into a feed. 回答1: Although this is not exactly programming related... I guess it is close enough. No, logging into somewhere is impossible with Yahoo Pipes. Sending the username/password isn't even the only problem here. The real problem is that most, if not all, web sites that require a log-in depend on a session cookie or something similar. Yahoo pipes

How to use YQL to merge 2 RSS feeds sorted by pubDate?

≯℡__Kan透↙ 提交于 2019-12-21 19:47:17
问题 Seeing that YQL is being promoted as a good way to do things, I was curious as to how to use YQL to fetch and merge 2 different feeds into one (sorted by pubDate). It's pretty trivial to fetch 2 feeds but it turns out that the feeds are just concatenated together and not merged. Here's the sample code. select channel.title,channel.link,channel.item.title,channel.item.link from xml where url in( 'http://code.flickr.com/blog/feed/rss/', 'http://feeds.delicious.com/v2/rss/codepo8?count=15',

Cross Domain security error in Silverlight?

折月煮酒 提交于 2019-12-19 10:57:24
问题 I'm trying to read a feed from Yahoo Pipes into a Silverlight Application. I keep getting a SecurityException, which sounds like a cross domain policy problem, but Yahoo pipes, if you go through the pipes.yahooapis domain, has a cross domain policy, so should be ok. I tried the exact same code, but going to the Digg API, and it works fine (although this is rest rather than an rss feed). Could my error have nothing to do with Cross Domain policies? I use the following code for the web request

Regular expression on Yahoo! pipes

天大地大妈咪最大 提交于 2019-12-19 10:04:33
问题 I'm fooling around with Yahoo! pipes and I'm hitting a wall with some regular expression. Now I'm familiar with regular expressions from Perl but the rules just seem to be different in Yahoo! pipes. What I'm doing is fetching a page and trying to turn it into a feed, my regex for stripping out the link from the HTML works fine but the title which I want to be what was in <i> tags just outputs the original text. Sample text that matches in Perl and on this online regexp tester: <a rel=

Using Handlerbars with Yahoo Pipes

荒凉一梦 提交于 2019-12-13 19:15:30
问题 I'm trying to pull JSON feeds from a yahoo pipes source into my jQuery Mobile project using Handlebars.js with jQuery's ajax method. This method works without Handlebars, but there are some limitations. It doesn't show up in jquerymobile listview format, instead it pops out like a normal bullet list. Here's the source: var pipeURL = "http://pipes.yahoo.com/pipes/pipe.run?_id=mu3NkfY_3BGtncSIJhOy0Q&_render=json"; $.ajax({ url : pipeURL, dataType : "json", success : function(data) { console.log

Yahoo Pipes how to truncate items per feed with multiple feeds

╄→гoц情女王★ 提交于 2019-12-12 06:37:01
问题 I have a Yahoo Pipe where I bring in a number of feeds via an OPML file. Rather than using truncate to limit the resulting number of items that get exported, I want to limit the number of items on a per feed basis. So if I have 60 feeds I want the latest 20 items from each one, not the latest 20 from the combined feeds. 回答1: You can do this by creating 2 pipes: A pipe that fetches a feed (one of the 60), and truncates after 20 items Another that loops over feed URLs, and for each URL calls

Regex and Yahoo Pipes: How to replace end of url

时光总嘲笑我的痴心妄想 提交于 2019-12-11 18:16:57
问题 Here's the Pipe though you may not need it to answer the question: http://pipes.yahoo.com/pipes/pipe.info?_id=85a288a1517e615b765df9603fd604bd I am trying to modify all url's as so: http://mediadownloads.mlb.com/mlbam/2009/08/12/mlbf_6073553_th_3.jpg with http://mediadownloads.mlb.com/mlbam/2009/08/12/mlbtv_6073553_1m.mp4 The syntax should be something like: In item.mediaUrl replace f with tv and In item.mediaUrl replace last 8 characters with 1m.mp4 mlbf_(\d+)_.* replaced w/ mlbtv_$1_1m.mp4

Yahoo Pipes and regex: Why does it work only for my first item?

偶尔善良 提交于 2019-12-11 08:20:52
问题 Here is my pipe: http://pipes.yahoo.com/pipes/pipe.info?_id=a732be6cf2b7cb92cec5f9ee6ebca756 I am currently trying to get the part before the first space to my item.url and the second part will be the title. For instance, first item is: http://carto1.wallonie.be/documents/terrils/fiche_terril.idc?TERRIL_id=1 Crachet 7/12 The expected result would be to get the "Crachet 7/12" as title and the other part as link. My regex query "([^\s]+)" seem to work only for my first item, I don't understand

Extracting number preceding a particular text using a regex

半腔热情 提交于 2019-12-11 01:39:48
问题 I'm looking for a regex to extract two numbers from the same text (they can be run independently, no need to extract them both in one go. I'm using yahoo pipes. Source Text: S$ 5,200 / month Negotiable, 1,475 sqft / 137 sqm (built-in) - Apartment, 10 Anson Road (D02) Need to extract as a number: 1,475 and also (but can be extracted on a separate instance) Need to extract as a number: 137 I got the following pattern from someone quite helpful on a different forum: \b(\d+(,\d+)*)\s+(sqft|sqm)