Tags:

คืนตอนนี้ผมอยากเอา twitter ของนักข่าวมารวมกันอ่ะครับ แต่มันก็ทำไม่ได้ตามที่เป็นข่าวกันไปใน blognone เลยอยากถามว่าจะมีวิธีไหนที่ผมจะทำได้บ้างครับ ขอบคุณครับ

Get latest news from Blognone
By: anu
Contributor
on 21 May 2011 - 15:34 #291487

RSS ยังมีอยู่ครับ แต่แอบไว้

http://twitter.com/statuses/user_timeline/{USER_ID}.rss

ตัวอย่างเช่นของ @politics_mcot รหัส 57843660 ลิงค์คือ

http://twitter.com/statuses/user_timeline/57843660.rss

การหา user-id ให้ดู source แล้วหา attribute data-user-id เทียบกับ data-screen-name จาก HTML ของ หน้า Twitter นั้นๆ ตัวอย่างเช่น HTML ของ http://www.twitter.com/politics_mcot จะเจอส่วนนึงเป็น

<div class="stream-item-content tweet stream-tweet " data-tweet-id="71839807512379393" data-item-id="71839807512379393" data-screen-name="politics_mcot" data-user-id="57843660">

By: bi89
ContributorUbuntuWindows
on 21 May 2011 - 23:02 #291574
bi89's picture

ขอบคุณมากๆๆครับผม

By: bongikairu
ContributoriPhone
on 24 May 2011 - 05:03 #292225

จริงๆ ใช้ username แทนเลยก็ได้นะครับ ใช้ https://twitter.com/statuses/user_timeline/politics_mcot.rss