Require Feature
- Top Programing Language
- เลือกแนวทางการนำเสนอได้
- Top Repository
- ต้อง define เองว่า top มาจากอะไร
- Top Trending Repository
- มี filter Today, Week, Month
- ต้อง define ว่า
- อะไรกำหนดเป็น trend
- query github api ยังไง
- handle date filterling ยังไง
- Repo search
- search ชื่อ user → แสดง repo
- search ชื่อ organize → แสดง repo
- search ชื่อ repo → แสดง repo
- search ชื่อ full repo ( owner/reponame ) → แสดง Detail
Github API
Limit
Search
- Github ดึงข้อมูลได้ 100 รายการ ต่อครั้ง และดึงได้มากสุด 1000 รายการแรกที่ Match
- Authenticated users get 30 requests per minute
- unauthenticated users get 10 per minute.
API Limit
- Personal Accounts (Authenticated): 5,000 requests per hour.
- GitHub Enterprise Cloud (Authenticated): 15,000 requests per hour.
- Unauthenticated Requests: 60 requests per hour.
Rate limit check
How to Check Your StatusYou can check your remaining quota by calling the Rate Limit endpoint or by inspecting the HTTP headers in any API response: [1, 2]
• x-ratelimit-limit: Your total hourly limit.
• x-ratelimit-remaining: Requests left in the current window.
• x-ratelimit-reset: The time (in UTC Epoch seconds) when your limit resets
<aside>
💡
เราใช้ page_limit เพื่อโหลดต่อครั้ง คู่ page เพื่อ track ได้ว่ารายการไหนเราเปิดไปแล้ว
</aside>
Search
search = https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories