Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

docs: add stars history manually because of Github API changes

Karim shoair2c371e0f2ec9
diff --git a/docs/assets/star-history.png b/docs/assets/star-history.png
new file mode 100644
index 0000000..0a017dc
Binary files /dev/null and b/docs/assets/star-history.png differ
diff --git a/docs/index.md b/docs/index.md
index ab2502e..8782eb3 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -155,35 +155,11 @@ MySpider().start()
Scrapling’s 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: