File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,36 +154,12 @@ MySpider().start()
154154## Star History
155155Scrapling’s GitHub stars have grown steadily since its release (see chart below).
156156
157- <div id = " chartContainer " >
158- <a href =" https://github. com/D4Vinci/Scrapling " >
159- <img id="chartImage" alt="Star History Chart" loading="lazy" src="https://api. star-history.com/svg?repos=D4Vinci/Scrapling&type=Date" height="400 "/>
157+ <div >
158+ <a href =" https://www.star-history. com/?repos=D4vinci%2FScrapling&type=date&legend=top-left " >
159+ <img alt="Star History Chart" loading="lazy" src="assets/ star-history.png" style="height: 400px; "/>
160160 </a >
161161</div >
162162
163- <script >
164- const observer = new MutationObserver ((mutations ) => {
165- mutations .forEach ((mutation ) => {
166- if (mutation .attributeName === ' data-md-color-media' ) {
167- const colorMedia = document .body .getAttribute (' data-md-color-media' );
168- const isDarkScheme = document .body .getAttribute (' data-md-color-scheme' ) === ' slate' ;
169- const chartImg = document .querySelector (' #chartImage' );
170- const baseUrl = ' https://api.star-history.com/svg?repos=D4Vinci/Scrapling&type=Date' ;
171-
172- if (colorMedia === ' (prefers-color-scheme)' ? isDarkScheme : colorMedia .includes (' dark' )) {
173- chartImg .src = ` ${ baseUrl} &theme=dark` ;
174- } else {
175- chartImg .src = baseUrl;
176- }
177- }
178- });
179- });
180-
181- observer .observe (document .body , {
182- attributes: true ,
183- attributeFilter: [' data-md-color-media' , ' data-md-color-scheme' ]
184- });
185- </script >
186-
187163
188164## Installation
189165Scrapling requires Python 3.10 or higher:
You can’t perform that action at this time.
0 commit comments