728x90
출처 블로그: https://honeyinfo7.tistory.com/328
진짜 완전 간단 최고봉이다...
기술 스택 뱃지가 오히려 이틀걸림..ㅠㅅ ㅠ
근데 중간에
markdown_text = """
[쓰고싶은 내용]
""" # list of blog posts will be appended here
여기 append라고해서 원래 있던 readme 내용에
원하는 헤더(?)+ 블로그 목록만 추가 되는 줄 알았는데
걍 싹 밀고 덮어씌우는거라 다시 해서 완성~(글 잘 보면 생성한다고 쓰여잇음..ㅎ)
간지
max_post 값은 +1로 생각하면 되는듯...
티스토리 rss url은 그냥 블로그 주소 뒤에 /rss 추가한것이다..
더보기
main.py
import feedparser, time
URL="https://everyday-com-eat.tistory.com/rss"
RSS_FEED = feedparser.parse(URL)
MAX_POST=5
markdown_text = """
### ![카피바라](capybara.png) everyday commit <span> </span> [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fjinsugyeong&count_bg=%23CBC2D3&title_bg=%23D8C0F1&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)
![GitHub stats](https://github-readme-stats.vercel.app/api?username=jinsugyeong&theme=buefy&show_icons=true)
<br><br>
### ![카피바라](capybara.png) 사용기술
<div style="display:flex; flex-direction:column; align-items:flex-start;">
<!-- Backend -->
<p><strong>Backend</strong></p>
<div>
<img src="https://img.shields.io/badge/java-007396?style=flat-square&logo=java&logoColor=white">
<img src="https://img.shields.io/badge/node.js-339933?style=flat-square&logo=Node.js&logoColor=white">
<img src="https://img.shields.io/badge/PHP-777BB4?style=flat-square&logo=PHP&logoColor=white">
</div><br>
<!-- Database -->
<p><strong>Database</strong></p>
<div>
<img src="https://img.shields.io/badge/mysql-4479A1?style=flat-square&logo=mysql&logoColor=white">
<img src="https://img.shields.io/badge/oracle-F80000?style=flat-square&logo=oracle&logoColor=white">
<img src="https://img.shields.io/badge/Microsoft SQL Server-F80000?style=flat-square&logo=Microsoft SQL Server&logoColor=white">
</div><br>
<!-- Server -->
<p><strong>Server</strong></p>
<div>
<img src="https://img.shields.io/badge/linux-FCC624?style=flat-square&logo=linux&logoColor=black">
<img src="https://img.shields.io/badge/apache tomcat-F8DC75?style=flat-square&logo=apachetomcat&logoColor=black">
<img src="https://img.shields.io/badge/JBoss-D0271D?style=flat-square&logo=JBoss&logoColor=white"/>
</div><br>
<!-- Frontend -->
<p><strong>Frontend</strong></p>
<div>
<img src="https://img.shields.io/badge/html5-E34F26?style=flat-square&logo=html5&logoColor=white">
<img src="https://img.shields.io/badge/css-1572B6?style=flat-square&logo=css3&logoColor=white">
<img src="https://img.shields.io/badge/javascript-F7DF1E?style=flat-square&logo=javascript&logoColor=black">
<img src="https://img.shields.io/badge/jQuery-0769AD?style=flat-square&logo=jQuery&logoColor=white"/>
</div><br>
<!-- FrameWork -->
<p><strong>FrameWork</strong></p>
<div>
<img src="https://img.shields.io/badge/Spring-6DB33F?style=flat-square&logo=Spring&logoColor=white">
<img src="https://img.shields.io/badge/Spring Boot-6DB33F?style=flat-square&logo=Spring&logoColor=white">
<img src="https://img.shields.io/badge/express-000000?style=flat-square&logo=express&logoColor=white">
<img src="https://img.shields.io/badge/bootstrap-7952B3?style=flat-square&logo=bootstrap&logoColor=white">
</div><br>
<!-- Version Control -->
<p><strong>Verson Control</strong></p>
<div>
<img src="https://img.shields.io/badge/git-F05032?style=flat-square&logo=git&logoColor=white">
<img src="https://img.shields.io/badge/github-181717?style=flat-square&logo=github&logoColor=white">
<img src="https://img.shields.io/badge/SVN-809CC9?style=flat-square&logo=seat&logoColor=white"/>
</div><br>
<!-- Development Tools -->
<p><strong>Development Tools</strong></p>
<div>
<img src="https://img.shields.io/badge/Eclipse IDE-2C2255?style=flat-square&logo=Eclipse IDE&logoColor=white"/>
<img src="https://img.shields.io/badge/Visual Studio Code-007ACC?style=flat-square&logo=Visual Studio Code&logoColor=white"/>
</div><br>
</div>
<br><br>
### ![카피바라](capybara.png) Today I Learned
""" # list of blog posts will be appended here
for idx, feed in enumerate(RSS_FEED['entries']):
if idx > MAX_POST:
break
else:
feed_date = feed['published_parsed']
markdown_text += f"[{time.strftime('%Y/%m/%d', feed_date)} - {feed['title']}]({feed['link']}) <br/>\n"
f = open("README.md",mode="w", encoding="utf-8")
f.write(markdown_text)
f.close()
python-app.yml
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 0 */1 * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install feedparser
- name: Run Update Python Script
run: |
python main.py
- name: Update README.md file
run: |
git pull
git add .
git diff
git config --local user.email "apr15th@naver.com"
git config --local user.name "jinsugyeong"
git commit -m "Don't worry, be Capy"
git push
'Scrap' 카테고리의 다른 글
vscode ssh password없이 접속 (0) | 2022.05.30 |
---|---|
기술 면접 가이드 (0) | 2022.03.22 |
이클립스에서 자바스크립트,제이쿼리 자동완성 사용하기 (0) | 2021.12.23 |
윈도우 아이콘 바꾸기 (0) | 2021.12.15 |
명령 프롬프트에서 mysql 실행하기/ 명령 프롬프트 단축키 설정 (0) | 2021.12.14 |