AGAIN there is no option here to strip/remove previous links and descriptions, this is a MUST HAVE option.
This was added to the last update
http://rootjazz.com/tumblingjazz/updatetesting.html
Can you explain how this works.
I have a number of RSS feeds with lots of videos I want but when I set this up it won't extract the videos from the feed history.
The POST VIDEO module, doesn't actually post videos, it links to an online video file. I know it works with youtube, but haven't tested with other online videos that tumblr accepts. With that said, the POST FROM RSS FEED is not magic, it will only extract videos based on the RSS META DETAILS. This is a description of what to extract from the RSS feed.
XPATH is used to extract a value from the feed, this value is then used to post. There are a few defaults setup in the POST FROM RSS module, other feeds you will need to setup yourself (either yourself or ask me how)
Will this ONLY reblog new content ?
yes, using the xpath selectors, the video URL will be extracted from the feed and checked if posted before
How can I extract all the videos from a rss feed (or archive) historically and add them to my queue, what module can I use to do this??
This is two questions, from an archive and from a feed.
To pull from a tumblr blog, you would need to enter the tumblr blogs RSS URL. So now the question is the same, how to pull videos from an RSS feed
so looking at the feed
Code: Select all
<item><title>Stroking his huge cock- bri bird strokes his large pole for once</title><description>
<video id='embed-54a6c8e50744e413641941' class='crt-video crt-skin-default' width='400' height='300' poster='http://media.tumblr.com/tumblr_nh3u0fmVLu1u01bb4_frame1.jpg' preload='none' data-crt-video data-crt-options='{"duration":278,"hdUrl":false,"filmstrip":{"url":"http:\/\/38.media.tumblr.com\/previews\/tumblr_nh3u0fmVLu1u01bb4_filmstrip.jpg","width":"200","height":"150"}}' >
<source src="http://ukmobilephoneporn.tumblr.com/video_file/106083915580/tumblr_nh3u0fmVLu1u01bb4" type="video/mp4">
</video>
<br/><br/><p><a href="http://www.britishmobileporn.com" target="_blank">Stroking his huge cock- bri bird strokes his large pole for once</a></p></description><link>http://ukmobilephoneporn.tumblr.com/post/106083915580</link><guid>http://ukmobilephoneporn.tumblr.com/post/106083915580</guid><pubDate>Wed, 24 Dec 2014 15:54:02 -0500</pubDate><category>brit</category><category>bird</category><category>brit bird</category><category>stroke</category><category>hard</category><category>cock</category></item><item><title>Hot teen selfshot using a vibrator on kik</title><description>
<video id='embed-54a6c8e508a99050308340' class='crt-video crt-skin-default' width='400' height='300' poster='http://media.tumblr.com/tumblr_ngxlwhF76C1u01bb4_frame1.jpg' preload='none' data-crt-video data-crt-options='{"duration":82,"hdUrl":false,"filmstrip":{"url":"http:\/\/33.media.tumblr.com\/previews\/tumblr_ngxlwhF76C1u01bb4_filmstrip.jpg","width":"200","height":"150"}}' >
<source src="http://ukmobilephoneporn.tumblr.com/video_file/105769583930/tumblr_ngxlwhF76C1u01bb4" type="video/mp4">
</video>
<br/><br/><p><a href="http://www.britishmobileporn.com/Uk-British-Mobile-Porn-Videos.html" target="_blank">Hot teen selfshot using a vibrator on kik</a></p></description><link>http://ukmobilephoneporn.tumblr.com/post/105769583930</link><guid>http://ukmobilephoneporn.tumblr.com/post/105769583930</guid><pubDate>Sun, 21 Dec 2014 07:12:49 -0500</pubDate><category>kik</category><category>teen</category><category>selfshot</category><category>vid</category></item>
lets lay it out a bit clear replace >< for >\r\n<
Code: Select all
<item>
<title>Stroking his huge cock- bri bird strokes his large pole for once</title>
<description>
<video id='embed-54a6c8e50744e413641941' class='crt-video crt-skin-default' width='400' height='300' poster='http://media.tumblr.com/tumblr_nh3u0fmVLu1u01bb4_frame1.jpg' preload='none' data-crt-video data-crt-options='{"duration":278,"hdUrl":false,"filmstrip":{"url":"http:\/\/38.media.tumblr.com\/previews\/tumblr_nh3u0fmVLu1u01bb4_filmstrip.jpg","width":"200","height":"150"}}' >
<source src="http://ukmobilephoneporn.tumblr.com/video_file/106083915580/tumblr_nh3u0fmVLu1u01bb4" type="video/mp4">
</video>
<br/><br/><p><a href="http://www.britishmobileporn.com" target="_blank">Stroking his huge cock- bri bird strokes his large pole for once</a></p></description>
<link>http://ukmobilephoneporn.tumblr.com/post/106083915580</link>
<guid>http://ukmobilephoneporn.tumblr.com/post/106083915580</guid>
<pubDate>Wed, 24 Dec 2014 15:54:02 -0500</pubDate>
<category>brit</category>
<category>bird</category>
<category>brit bird</category>
<category>stroke</category>
<category>hard</category>
<category>cock</category>
</item>
<item>
<title>Hot teen selfshot using a vibrator on kik</title>
<description>
<video id='embed-54a6c8e508a99050308340' class='crt-video crt-skin-default' width='400' height='300' poster='http://media.tumblr.com/tumblr_ngxlwhF76C1u01bb4_frame1.jpg' preload='none' data-crt-video data-crt-options='{"duration":82,"hdUrl":false,"filmstrip":{"url":"http:\/\/33.media.tumblr.com\/previews\/tumblr_ngxlwhF76C1u01bb4_filmstrip.jpg","width":"200","height":"150"}}' >
<source src="http://ukmobilephoneporn.tumblr.com/video_file/105769583930/tumblr_ngxlwhF76C1u01bb4" type="video/mp4">
</video>
<br/><br/><p><a href="http://www.britishmobileporn.com/Uk-British-Mobile-Porn-Videos.html" target="_blank">Hot teen selfshot using a vibrator on kik</a></p></description>
<link>http://ukmobilephoneporn.tumblr.com/post/105769583930</link>
<guid>http://ukmobilephoneporn.tumblr.com/post/105769583930</guid>
<pubDate>Sun, 21 Dec 2014 07:12:49 -0500</pubDate>
<category>kik</category>
<category>teen</category>
<category>selfshot</category>
<category>vid</category>
</item>
so we can see each item is specified with an ITEM tag
<item>
The title is a TITLE tag
<title>
Now we need to extract the VIDEO URL, this is a URL that you could insert into tumblr website for post a video from URL
Looking at your rss item, it seems to be:
Code: Select all
http://ukmobilephoneporn.tumblr.com/video_file/105769583930/tumblr_ngxlwhF76C1u01bb4
Another way to get the URL could be to pull the webpage itself by LINK tag
<link>, then extract from that page.
anyways, lets assume it is the URL above, so we now need to extract this from within the <item> using XPATH
XPATH allows us to extract values from HTML / XML / RSS code. However, the URL we want is within the description tag, BUT IS NOT HTML, it is encoded, this means XPATH won't work.
So we can use the TumJaz code of srclike to return a src attribute based on a partial pattern match. This relies on a video file ALWAYS having a match on a pattern
for this item video file src attribute
src="
http://ukmobilephoneporn.tumblr.com/vid ... VLu1u01bb4"
we could use srclike = video_file
this will return the FULL src attribute that contains "video_file". But if other videos for other items do not contain this, they will NOT be returned.
I which case it might be better to pull the website path then scrape the xpath using the tag
scrapexpath.
but I come on to that later
so we know will specify RSS meta on srclike
Rss Meta Options
ITEM TAG: <item>
VIDEO URL: <description>[srclike=video_file]
TAGS
DESCRIPTION: <title>
STUB
URL SOURCE
we will ignore the tags . stub / url src for now as not essential
So looking here:
<description>[srclike=video_file]
We pull the RSS element description, then specify the srclike tag within [...]
If you wanted to go the other method, using xpath, you would use the element
Code: Select all
<link>http://ukmobilephoneporn.tumblr.com/post/106083915580</link>
so we would specify in the RSS OPTIONS for video url
<link>[scrapexpath=//XPATH/CODE/HERE]
So what happens here is the page URL is extracted
http://ukmobilephoneporn.tumblr.com/post/106083915580
then that page is scraped and the code at the xpath is extracted and used to post the video
Note
The xpath will return the inner HTML, if you want an attribute the notation is
<link>[scrapexpath=//XPATH/CODE/HERE/@ATTR]