跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] [独立开发] 大佬说, 像浏览朋友圈一样看大佬发言

发表于

项目访问地址: https://coderxiaoshi.github.io/master-talk/

为什么要做这个项目

想做开源软件, 但又不知道做啥. 哎, 也不知道我这个算不算伪需求

这个软件是爬 X 上某个博主的发言, 然后再用展示到自己的网页上, 网页的布局类似于微信朋友圈 这样就可以像浏览朋友圈一样, 看大佬发言了

这是我又开发的一款开源软件, 感兴趣也可以看看前两个

  • f-server
  • codesave

大体功能如下

下面说下这个软件要怎么用哈

  1. git clone https://github.com/CoderXiaoShi/master-talk.git
  2. 必须要先登录你的 X 否则你看到的内容不是最新的
  3. 开始爬数据
    cd data-collection
    cnpm i
    node index.js

    脚本会自己的保存相应的文本和图片, 然后拷贝到 website 文件夹下面
  1. 渲染爬到的数据
    cd website
    npm run dev
  1. 打开浏览器 http://localhost:3000 看看效果, 默认爬取的是 Elon Musk, OpenAI 的 X
  2. 如果你想修改爬其他大佬, 那你就修改代码吧
  // data-collection/index.js
  // 第 122 行

  // 用户 Id
  let userIds = [
    'elonmusk',
    'openai'
  ]
  let pageMap = {}

[效果图]

demo.png

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.