matumoto1234 / cp-crawler Goto Github PK
View Code? Open in Web Editor NEW競技プログラミング用の提出クローラー
License: MIT License
競技プログラミング用の提出クローラー
License: MIT License
コメントアウトしてしまっている部分を消して、InitGit
GITHUB_
を接頭辞としたシークレットは作れないらしい
utilの実装
クロールの際にAtCoder Problems APIのレスポンスをキャッシュ、最新のものをクロールという作業を行っているのでそれぞれオプションで -update
を渡すなりして機能を分けたい
-update
C++の提出なのに.cになってる
あったらうれしいので
RepositoryがRepositoryManagerを持ってるのっておかしくない?
ここらへん結構難しい変更になりそうなので、なんか思いついたら追記すること
特に、RepositoryManagerがRepositoryを持つってなったときに具象に依存してしまいそうな予感がしていて、難しい
GitHubActionsで動かしてるやつが毎朝コケてるのでそれをなおす
go run crawler/main.go
AtCoderクローラーを実装する
main -> controller -> usecase -> service -> repository -> model
という依存関係にし、それぞれに分ける
なんか元々ある?やつが1.17でそれのパスがすでに通っているっぽいので、wgetで取ってくるのではなくすでにあるライブラリを使う
このissueでどうやら解決されているっぽいので、これをそのまま使う
なおす!!!!!!!
logInfoとかを受け渡さず、各所に散らばってるのでslogとかのライブラリを使って統一させるなりなんなりしたい
https://github.com/matumoto1234/cp-crawler/actions/runs/4996529018
なんかクロールされてなくない?
途中でエラーがあったら中断してしまうのではなく、他のやつはそのままクロールするようにしよう
run: go version
をわすれた
clean-architectureっぽい見た目をしているが、割と破綻している。
DDDを使ってちゃんとモデリングし直してきちんとした設計のもとコードをリファクタリングする
おそらくかなり大きい変更になるけどissueはわけないで進めてOK(個人開発なので)
仮に分けるとしたら、モデリング→アーキテクチャを決めて層ごとにPRみたいな感じにするかも?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.