doutuo1939 2011-05-08 08:25
浏览 39
已采纳

如何提取像这个网站的博客帖子呢?

This site is built on Ning. You'll notice they have jQuery tabs set up on the home page and looking through the source code, you'll see that those tabs are getting their content from an outside url (below):

<div class="ui-tabs" id="tabs"> 
     <ul> 
          <li><a href="http://friendsorenemies.com/vip/blog/embedPromoted?pageSize=10">Features</a></li> 
          <li><a href="http://friendsorenemies.com/vip/blog/embedVip?pageSize=10">Vip Blogs</a></li> 
          <li><a href="http://friendsorenemies.com/vip/blog/embedAll?pageSize=10">All</a></li> 
     </ul>
</div>

However, those urls aren't standard to Ning (I've tried appending /vip/blog/embedPromoted?pageSize=10 on a similar Ning blog url and it didn't work) which leads me to believe that they were created separately somehow to extract just the blog posts. Here is what a blog page on Ning looks like for reference: link

Anybody have an idea of how they created these pages with just the blog posts? I originally thought of using the blog's rss feed but realized the rss doesn't include author avatars and certain post metadata information like how it is in the first link I posted above.

Any help would be hugely appreciated.

Thanks to all in advance!

  • 写回答

3条回答 默认 最新

  • douyanpeng0748 2011-05-09 20:32
    关注

    The /vip URLs on that Ning site is a custom feature from when Ning used to host custom PHP code. Since it's a custom feature, it's not available on other sites.

    It's possible to create something similar using the Ning API to aggregate blog content from a specific set of members into a single HTML page or RSS feed. It would have to be implemented on an external server.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗