Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qitas committed Mar 16, 2024
1 parent 7090e47 commit c72a993
Show file tree
Hide file tree
Showing 259 changed files with 18 additions and 28,250 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/spider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: spider
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
- cron: "0 1 * * *"
push:
branches:
- master
Expand All @@ -15,28 +15,28 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Spider
working-directory: trending
working-directory: embedded
run: |
python spider.py
python embedded.py
# Runs a set of commands using the runners shell
- name: push to origin master
run: |
echo start push
git config --global user.name "qitas"
git config --global user.email "[email protected]"
git config --global user.name "qitas"
git config --global user.email ${{ secrets.COMMIT_EMAIL }}
git add -A
git commit -m $(date '+%Y-%m-%d')
git push
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [OS-Q](https://github.com/OS-Q)

* [pio](https://github.com/OS-Q/pio)
* [qio](https://github.com/OS-Q/qio)
* [bleak](https://github.com/OS-Q/bleak)
* [pikapython](https://github.com/OS-Q/pikapython)
* [CherryUSB](https://github.com/OS-Q/CherryUSB)
* [thingsboard](https://github.com/OS-Q/thingsboard)
[![Build Status](https://github.com/qitas/OS-Q/workflows/spider/badge.svg)](https://github.com/qitas/OS-Q/tree/master)

收集整理高价值开源资源,用于学习/集成/训练

* [hathach / tinyusb](https://github.com/hathach/tinyusb):An open source cross-platform USB stack for embedded system
* [Syllo / nvtop](https://github.com/Syllo/nvtop):GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
6 changes: 3 additions & 3 deletions trending/spider.py → embedded/embedded.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def scrape(language, filename):

# codecs to solve the problem utf-8 codec like chinese
with codecs.open(filename, "a", "utf-8") as f:
f.write('\n#### {language}\n'.format(language=language))
f.write('\n### {language}\n\n'.format(language=language))

for item in items:
i = pq(item)
Expand All @@ -62,9 +62,9 @@ def job():
createMarkdown(strdate, filename)

# write markdown
# scrape('daily', filename)
scrape('C', filename)
scrape('C++', filename)
scrape('CMake', filename)
# scrape('C++', filename)
scrape('Makefile', filename)

# git add commit push
Expand Down
119 changes: 0 additions & 119 deletions trending/2023-05-19.md

This file was deleted.

Loading

0 comments on commit c72a993

Please sign in to comment.