Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ Forum
➜ About
➜ RSS
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Fri 01 Apr 2011 08:49 AM (UTC) |
Message
| Hey Nick,
Just wanted to notify you I'm scraping the RSS feed here for this: http://twitter.com/#!/MUD_news
If you have any questions/concerns, you know how to contact me. :)
Also I had a question about the RSS. At first glance, I thought it was RSS for latest topics. But it appears to be RSS for the latest posts, restricted to that topic only showing up once in the RSS.
Any chance for a RSS on latest topics? Latest post RSS will end up making my feed have duplicate posts. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Fri 01 Apr 2011 08:08 PM (UTC) |
Message
| Also wanted to mention something weird about the feed. If you see these two:
http://twitter.com/#!/MUD_news/status/53461212905734145
http://twitter.com/#!/MUD_news/status/53507275121360897
They link to the same post, but one is on gammon.com.au and the other mushclient.com
That could only happen if the RSS feed had it like that. Any chance you could double check to make sure the feed only uses one domain? :) |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 02 Apr 2011 07:57 AM (UTC) |
Message
| They are the same file, because the RSS feed generator writes to one place. However what I think is happening is that Twitter is finding the same file under two domains. I don't know what I can do about that. The two domains point to the same physical file, and it will have the same data in it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #3 on Sat 02 Apr 2011 08:04 AM (UTC) Amended on Sat 02 Apr 2011 08:05 AM (UTC) by Twisol
|
Message
| I think that he's talking about the contents of the feed, not the feed's location itself. If he's tweeting posts from a given feed, but the post URLs are mixed between gammon.com.au and mushclient.com, that's a problem with the feed itself.
Zeno: Nobody does it right, so don't feel bad about this, but when you link to a tweet, remove the "#!/". If anyone who has javascript disabled tries to follow that URL, they won't get the right thing. This is because anything after a # in a URL is part of the fragment ID, not the URL. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 02 Apr 2011 10:14 AM (UTC) |
Message
| OK, the domain you came from was written to the file. I think I have fixed it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #5 on Sat 02 Apr 2011 10:21 AM (UTC) |
Message
| Well, maybe not. How about this? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Sat 02 Apr 2011 12:46 PM (UTC) |
Message
| Twisol has it right. The feed is producing URLs of different domains.
The last 3 from the feed had one domain used (gammon.com.au) which looks okay, but the URLs are different (one without www, another without bbshowpost.php)
Oh and Twisol, yeah my bad. reddit complains about that all the time, I just tend to forget to fix the URL. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #7 on Sat 02 Apr 2011 09:34 PM (UTC) |
Message
| It looks all straightened out, though! |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #8 on Sat 02 Apr 2011 09:42 PM (UTC) |
Message
| It should be OK now. I amended it again just then to remove the "bbsubject_id=", but that was hard coded. This is the current code:
while ($row = mysql_fetch_array ($result))
{
fwrite ($fd, "\n<item>\n" );
fwrite ($fd, " <title>" .
htmlspecialchars ($row ['fullname']) .
"</title>\n");
fwrite ($fd, " <link>" .
"http://www.gammon.com.au/forum?id=" .
$row ['bbsubject_id'] .
"&page=999" .
"</link>\n");
fwrite ($fd, " <description>" .
"Post by " .
htmlentities ($row ['username']) .
"</description>\n");
fwrite ($fd, " <author>" .
htmlentities ($row ['username']) .
"</author>\n");
fwrite ($fd, " <pubDate>" .
htmlentities ($row ['formatted_date']) .
"</pubDate>\n");
fwrite ($fd, "</item>\n" );
} // end of reading each row
fwrite ($fd,
"</channel></rss>\n"
);
In particular the line in bold just has a hard-coded URL (now) and just mentions the subject number. That shouldn't chop and change.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
32,877 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top