Automated collection of social activities using GitHub Actions.
There are two components in this repo
- Data collection: the python code in
pulsefolder will be executed regularly using cronjob in GitHub Actions. - Dashboard: the frontend code in
dashboardfolder takes the data and visualizes it.
Fork the repo, and change the configs.
- Fork the repo. Make sure to allow GitHub Actions when forking.
- Remove the data files in
dashboard/data. - Change the
CNAMEfile to adjust to your own domain name if needed. Otherwise, delete the file. - Change the configs (see below).
The config file is located in configs/config.json.
Change all the user_id fields in the config. Check the details of the // comments in the following example.
{
"name": "social pulse",
"base_folder": "dashboard/data",
"enabled": [
["douban", "book_movie_music"]
],
"combined": {
"artifacts": {
"local": "pulses.json"
}
},
"social": {
"douban": {
"book_movie_music": {
"user_id": "emptymalei", // Replace it with your own douban id
"artifacts": {
"local": "douban/douban__book_movie_music.json"
}
},
"status": {
"user_id": "1587390", // Replace it with your own douban id, only numerical id is supported: https://docs.rsshub.app/social-media.html#dou-ban
"artifacts": {
"local": "douban/douban__status.json"
}
}
},
"github": {
"events": {
"user_id": "emptymalei", // Replace it with your GitHub id.
"artifacts": {
"local": "github/github__events.json"
}
}
}
}
}
npm install
npm run sources
npm run dev -- --host 0.0.0.0See the CLI docs for more command information.
Note: Codespaces is much faster on the Desktop app. After the Codespace has booted, select the hamburger menu → Open in VS Code Desktop.
The easiest way to get started is using the VS Code Extension:
- Install the extension from the VS Code Marketplace
- Open the Command Palette (Ctrl/Cmd + Shift + P) and enter
Evidence: New Evidence Project - Click
Start Evidencein the bottom status bar
npx degit evidence-dev/template my-project
cd my-project
npm install
npm run sources
npm run devCheck out the docs for alternative install methods including Docker, Github Codespaces, and alongside dbt.
