docs: add stars history manually because of Github API changes

Ref.: https://www.star-history.com/blog/github-stargazer-api-restriction
This commit is contained in:
Karim shoair
2026-08-11 01:03:00 +03:00
parent 3f32fa9050
commit 2c371e0f2e
2 changed files with 2 additions and 26 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

+2 -26
View File
@@ -155,35 +155,11 @@ MySpider().start()
Scraplings GitHub stars have grown steadily since its release (see chart below).
<div id="chartContainer">
<a href="https://github.com/D4Vinci/Scrapling">
<img id="chartImage" alt="Star History Chart" loading="lazy" src="https://api.star-history.com/svg?repos=D4Vinci/Scrapling&type=Date" height="400"/>
<a href="https://www.star-history.com/?repos=D4vinci%2FScrapling&type=date&legend=top-left">
<img id="chartImage" alt="Star History Chart" loading="lazy" src="assets/star-history.png" height="400"/>
</a>
</div>
<script>
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.attributeName === 'data-md-color-media') {
const colorMedia = document.body.getAttribute('data-md-color-media');
const isDarkScheme = document.body.getAttribute('data-md-color-scheme') === 'slate';
const chartImg = document.querySelector('#chartImage');
const baseUrl = 'https://api.star-history.com/svg?repos=D4Vinci/Scrapling&type=Date';
if (colorMedia === '(prefers-color-scheme)' ? isDarkScheme : colorMedia.includes('dark')) {
chartImg.src = `${baseUrl}&theme=dark`;
} else {
chartImg.src = baseUrl;
}
}
});
});
observer.observe(document.body, {
attributes: true,
attributeFilter: ['data-md-color-media', 'data-md-color-scheme']
});
</script>
## Installation
Scrapling requires Python 3.10 or higher: