projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rss_converter_facebook.com.xsl: fix scraping facebook.com pages once again
[tweeper.git]
/
src
/
rss_converter_facebook.com.xsl
diff --git
a/src/rss_converter_facebook.com.xsl
b/src/rss_converter_facebook.com.xsl
index
bff19d3
..
0750b30
100644
(file)
--- a/
src/rss_converter_facebook.com.xsl
+++ b/
src/rss_converter_facebook.com.xsl
@@
-52,7
+52,7
@@
name="page-id"
select="substring-after(//meta[@property='al:android:url']/@content, 'fb://page/')"/>
name="page-id"
select="substring-after(//meta[@property='al:android:url']/@content, 'fb://page/')"/>
- <xsl:template match="//div[contains(@class, 'fbUser
Conten
t')]">
+ <xsl:template match="//div[contains(@class, 'fbUser
Pos
t')]">
<xsl:variable name="story-id" select=".//input[@name='ft_ent_identifier']/@value"/>
<xsl:variable
name="item-permalink"
<xsl:variable name="story-id" select=".//input[@name='ft_ent_identifier']/@value"/>
<xsl:variable
name="item-permalink"
@@
-106,7
+106,8
@@
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
- <xsl:variable name="channel-link" select="//div[contains(@class, 'fbUserContent')][1]//a[1]/@href"/>
+ <xsl:variable name="channel-link" select="//div[contains(@class, 'fbUserPost')][1]//a[1]/@href"/>
+ <xsl:variable name="channel-image" select="//div[contains(@class, 'fbUserPost')][1]//a[1]//img/@src"/>
<rss version="2.0">
<xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
<rss version="2.0">
<xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
@@
-131,10
+132,10
@@
<xsl:value-of select="$channel-link"/>
</link>
<url>
<xsl:value-of select="$channel-link"/>
</link>
<url>
- <xsl:value-of select="
//img[@class='profilePic img']/@src
"/>
+ <xsl:value-of select="
$channel-image
"/>
</url>
</image>
</url>
</image>
- <xsl:apply-templates select="//div[contains(@class, 'fbUser
Conten
t')]"/>
+ <xsl:apply-templates select="//div[contains(@class, 'fbUser
Pos
t')]"/>
</channel>
</rss>
</xsl:template>
</channel>
</rss>
</xsl:template>