svg-captcha-solver 0.0.9
svg captcha solver
Requires Python: >=3.10

# svg captcha solver
svg captcha is one most famous captch that is used in nodejs backend 
i recently created his package that can solve this type of captch for automating websites

## checklist
### supports
- numbers
- colored captcha
### in future
- letters
- equations

## example
```
    svg_captcha ='''<pre><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0,0,150,50"><path d="M13 13 C82 35,61 20,137 20" stroke="#666" fill="none"></path><path fill="#222" d="M115.54 29.24L115.50 29.20L115.41 29.11Q113.53 29.10 112.31 30.43L112.33 30.44L112.47 30.59Q111.19 31.85 111.04 33.76L110.95 33.68L111.11 33.84Q110.80 35.84 112.02 36.85L112.08 36.92L112.15 36.98Q113.32 37.95 115.45 37.87L115.49 37.90L115.36 37.78Q117.70 37.65 118.66 36.70L118.73 36.77L118.66 36.70Q119.72 35.28 119.60 33.45L119.57 33.42L119.70 33.55Q119.45 31.55 118.36 30.35L118.35 30.34L118.49 30.48Q117.37 29.24 115.54 29.24ZM115.54 19.83L115.54 19.83L115.48 19.78Q113.95 19.54 112.61 20.03L112.72 20.13L112.66 20.08Q111.39 20.91 111.62 22.77L111.55 22.70L111.59 22.74Q112.21 26.60 115.56 26.60L115.42 26.45L115.44 26.48Q116.95 26.62 117.94 25.47L118.03 25.56L118.06 25.59Q119.06 24.47 119.10 22.90L119.02 22.82L118.97 22.78Q119.06 21.03 118.34 20.42L118.49 20.58L118.49 20.58Q116.69 19.62 115.40 19.70ZM115.18 40.30L115.26 40.38L112.23 40.39L112.22 40.39Q110.68 40.37 109.35 39.49L109.34 39.48L109.26 39.41Q107.94 38.31 108.09 35.46L108.06 35.43L108.00 35.37Q108.42 28.48 112.04 27.49L112.21 27.66L112.23 27.68Q109.94 26.77 108.61 21.40L108.54 21.33L108.52 21.31Q108.09 19.81 108.16 19.01L108.30 19.14L108.17 19.01Q108.51 16.92 112.20 16.88L112.27 16.94L112.18 16.86Q116.49 16.86 117.93 17.05L118.00 17.12L117.93 17.04Q121.80 17.61 122.26 19.63L122.21 19.58L122.23 19.60Q122.29 20.16 122.29 20.54L122.30 20.54L122.36 20.61Q122.37 21.30 122.18 21.91L122.21 21.94L122.19 21.92Q121.60 26.16 118.66 27.68L118.56 27.58L118.61 27.63Q122.14 28.45 122.63 33.74L122.60 33.71L122.66 33.77Q122.66 33.92 122.69 35.21L122.70 35.22L122.62 35.14Q122.78 37.96 121.18 39.03L121.15 39.00L121.08 38.93Q119.79 39.89 115.22 40.35ZM117.44 42.60L117.41 42.57L120.74 42.63L120.89 42.78Q122.50 42.74 124.02 42.02L123.99 42.00L124.11 42.11Q125.25 41.39 125.33 39.52L125.31 39.51L125.19 39.38Q125.36 38.41 124.98 36.47L124.93 36.42L124.84 36.33Q124.06 31.82 121.96 29.95L121.85 29.84L121.69 29.49L121.58 29.30L121.37 28.98L121.34 28.94Q123.10 27.70 124.02 23.55L123.89 23.43L123.88 23.41Q123.98 23.14 124.06 22.30L123.96 22.20L124.07 22.31Q124.16 21.65 124.09 21.04L123.99 20.94L123.97 20.92Q123.81 19.47 122.63 18.97L122.61 18.95L122.63 18.93L122.53 18.91L122.56 18.94Q122.20 18.12 121.02 17.32L121.00 17.30L121.11 17.37L121.04 17.31Q119.23 16.79 115.16 16.60L114.99 16.43L115.16 16.60Q113.59 16.48 112.22 16.60L112.12 16.49L112.23 16.60Q111.28 16.49 109.99 16.65L110.06 16.72L110.02 16.68Q108.13 17.11 107.90 18.75L107.91 18.76L107.88 18.72Q107.92 19.30 107.96 20.10L107.78 19.92L107.91 20.05Q107.92 20.48 108.49 22.84L108.64 22.99L108.54 22.89Q109.37 26.15 111.12 27.48L111.10 27.46L111.23 27.60L111.09 27.46Q108.33 28.77 107.80 33.95L107.94 34.09L107.82 33.97Q107.74 36.29 107.74 37.20L107.66 37.12L107.77 37.23Q107.79 38.96 108.97 39.87L108.96 39.87L108.96 39.87Q109.00 39.87 109.27 40.06L109.42 40.21L109.29 40.09Q110.38 42.43 117.50 42.66ZM117.14 31.56L117.18 31.61L117.20 31.62Q117.97 31.40 118.85 31.86L118.95 31.97L118.96 31.97Q119.26 32.89 119.22 33.42L119.35 33.55L119.34 33.53Q119.31 33.78 119.31 34.08L119.25 34.02L119.39 34.15Q119.32 36.45 117.04 37.28L117.04 37.28L117.05 37.30Q116.30 37.65 115.50 37.54L115.46 37.50L115.37 37.40Q114.30 37.56 113.16 37.10L113.23 37.17L113.08 37.02Q112.93 36.49 113.01 35.50L112.92 35.42L112.98 35.48Q113.05 33.79 114.25 32.57L114.29 32.61L114.36 32.68Q115.51 31.42 117.11 31.53ZM117.31 22.03L117.33 22.05L117.28 22.00Q118.06 21.86 118.59 22.01L118.63 22.05L118.64 22.86L118.77 22.99Q118.65 24.28 117.73 25.28L117.73 25.28L117.87 25.42Q116.86 26.34 115.49 26.15L115.57 26.22L115.43 26.08Q114.46 26.10 114.04 25.87L114.08 25.92L114.02 25.85Q113.95 25.55 113.83 24.87L113.99 25.03L114.02 25.06Q113.56 23.46 114.78 22.62L114.98 22.82L114.90 22.74Q115.88 21.97 117.29 22.01Z"></path><path fill="#222" d="M27.24 23.35L27.28 23.39L27.24 23.34Q24.07 23.38 22.25 22.31L22.27 22.33L22.30 22.36Q24.80 20.98 29.68 16.76L29.75 16.83L29.73 16.81Q30.29 16.46 31.59 15.85L31.66 15.92L31.65 15.91Q30.26 21.80 30.15 28.16L30.31 28.32L30.16 28.17Q30.07 34.55 31.13 40.64L31.22 40.73L31.13 40.63Q29.47 39.92 27.34 39.81L27.28 39.75L27.38 39.85Q27.27 35.71 27.27 31.64L27.35 31.71L27.28 31.65Q27.20 27.45 27.23 23.34ZM26.90 25.63L26.93 40.24L26.82 40.13Q28.16 40.25 29.11 40.44L29.07 40.40L29.02 40.35Q29.22 41.16 29.41 42.53L29.38 42.50L29.35 42.47Q32.23 43.03 34.67 45.28L34.60 45.21L34.74 45.34Q32.25 38.22 32.21 30.75L32.13 30.67L32.17 30.71Q32.02 23.17 33.84 15.94L33.86 15.95L33.95 16.04Q33.31 16.35 31.71 17.46L31.69 17.44L31.83 17.58Q31.91 16.70 32.21 15.18L32.30 15.27L32.23 15.20Q30.86 15.92 29.41 16.30L29.54 16.44L29.43 16.32Q25.61 19.85 21.31 22.13L21.30 22.13L21.40 22.22Q22.71 23.23 25.07 23.57L25.24 23.74L25.12 23.63Q24.58 24.27 23.29 25.33L23.17 25.21L23.25 25.29Q24.72 25.66 26.92 25.66L26.95 25.68Z"></path><path fill="#333" d="M53.68 40.41L53.59 40.33L53.71 40.45Q49.49 40.53 48.50 38.20L48.63 38.33L48.53 38.24Q49.40 37.40 50.96 35.61L50.81 35.46L50.94 35.58Q51.39 37.56 54.40 37.67L54.42 37.69L54.41 37.68Q57.80 37.76 59.43 36.43L59.44 36.43L59.35 36.34Q60.76 34.75 60.69 32.05L60.72 32.08L60.80 32.15Q60.60 27.05 55.81 27.28L55.86 27.33L55.83 27.30Q52.91 27.36 51.16 28.61L51.24 28.69L50.86 28.46L50.64 28.32L50.79 28.46Q50.97 25.15 50.86 22.41L51.00 22.54L51.03 22.58Q50.86 19.89 50.51 16.58L50.54 16.60L50.49 16.56Q54.06 17.43 57.87 17.31L57.92 17.36L57.93 17.37Q61.70 17.26 65.28 16.00L65.27 15.99L64.78 17.60L64.79 17.61Q64.46 18.34 64.27 19.18L64.26 19.17L64.20 19.12Q61.22 20.29 57.34 20.29L57.30 20.25L57.26 20.21Q55.85 20.24 54.36 20.09L54.41 20.13L54.31 20.04Q54.24 20.73 53.90 25.18L53.87 25.15L53.91 25.20Q54.73 24.71 56.78 24.56L56.77 24.55L56.81 24.59Q60.48 24.76 61.93 26.44L61.95 26.46L61.89 26.39Q63.44 28.10 63.70 31.94L63.59 31.82L63.69 31.93Q63.96 36.11 62.74 38.13L62.68 38.07L62.74 38.13Q60.74 40.05 57.43 40.28L57.32 40.17L57.37 40.23Q56.33 40.25 53.66 40.40ZM59.79 42.76L59.76 42.73L59.74 42.71Q63.18 42.80 65.08 41.69L65.12 41.73L64.99 41.60Q65.93 40.03 65.93 37.93L65.98 37.99L65.96 37.97Q66.03 34.96 65.08 30.84L65.16 30.92L65.14 30.91Q64.61 29.01 63.40 27.60L63.45 27.65L63.58 27.82L63.33 27.49L63.03 27.35L62.98 27.30Q62.59 26.49 61.95 25.81L61.93 25.79L62.03 25.93L61.94 25.84Q60.51 24.25 56.82 24.25L56.79 24.23L56.47 24.18L56.47 24.17Q56.58 23.64 56.77 22.53L56.86 22.62L56.73 22.49Q61.74 22.63 65.77 20.99L65.82 21.04L65.72 20.93Q66.22 19.61 67.18 16.80L67.10 16.72L65.14 17.81L65.08 17.74Q65.36 16.50 65.85 15.36L65.84 15.35L66.02 15.53Q62.01 16.81 57.90 16.89L57.89 16.88L57.99 16.98Q53.80 17.01 49.84 15.90L49.84 15.91L49.98 16.04Q50.62 20.42 50.62 24.84L50.62 24.84L50.57 24.78Q50.62 26.74 50.51 28.64L50.41 28.55L50.42 28.55Q50.70 28.76 51.27 29.07L51.37 29.16L51.36 29.15Q51.72 28.94 52.36 28.59L52.36 28.59L52.24 28.47Q52.31 29.34 52.08 30.86L52.00 30.78L52.13 30.91Q52.53 31.08 52.94 31.31L52.94 31.31L52.81 31.17Q55.74 29.57 57.61 29.57L57.57 29.53L57.44 29.41Q58.82 29.45 60.00 30.10L60.09 30.19L59.96 30.06Q60.41 31.20 60.45 32.15L60.47 32.17L60.41 32.11Q60.45 34.67 59.43 35.77L59.43 35.77L59.40 35.74Q58.00 36.93 55.75 37.16L55.85 37.26L55.82 37.22Q54.84 37.28 54.16 37.20L54.30 37.34L54.29 37.34Q53.29 37.06 52.53 36.72L52.64 36.83L52.55 36.54L52.52 36.74L52.43 36.66Q51.75 36.28 51.21 34.94L51.16 34.89L51.06 34.79Q49.72 36.19 48.04 38.32L48.05 38.33L48.19 38.47Q48.44 39.06 49.28 40.01L49.31 40.04L49.35 40.09Q50.33 41.83 53.15 42.33L53.08 42.25L53.15 42.32Q54.30 42.52 59.67 42.64Z"></path><path fill="#333" d="M81.99 32.98L81.89 32.88L81.90 32.89Q85.13 32.65 88.33 32.77L88.18 32.62L88.22 32.66Q88.23 30.16 88.23 27.76L88.22 27.75L88.22 27.75Q88.25 25.31 88.44 22.76L88.31 22.63L88.42 22.73Q87.10 24.35 81.89 32.88ZM91.94 40.38L91.86 40.30L91.85 40.29Q90.20 40.01 88.41 39.93L88.48 40.00L88.38 39.90Q88.21 37.56 88.10 35.09L88.07 35.06L88.04 35.03Q82.84 34.97 78.12 36.38L77.99 36.25L78.10 36.36Q78.07 35.73 78.26 34.74L78.33 34.80L78.28 34.75Q80.20 31.72 83.78 25.44L83.64 25.30L83.67 25.34Q86.57 20.47 90.00 16.59L90.07 16.65L90.04 16.63Q90.92 16.44 92.60 16.18L92.52 16.10L92.65 16.23Q90.61 22.53 90.61 29.57L90.59 29.55L90.72 29.68Q90.62 31.07 90.70 32.55L90.69 32.54L92.07 32.74L92.09 32.76Q92.65 32.75 93.26 32.87L93.23 32.84L93.37 32.97Q93.33 33.81 93.59 35.75L93.71 35.87L93.62 35.78Q92.36 35.47 90.88 35.28L90.94 35.34L90.89 35.29Q91.16 37.35 91.84 40.28ZM93.55 32.51L93.53 32.49L93.45 32.41Q93.32 32.39 93.13 32.39L93.16 32.43L92.76 32.40L92.76 32.41Q92.65 30.92 92.65 29.52L92.63 29.50L92.69 29.56Q92.71 23.18 94.76 17.16L94.63 17.03L94.70 17.10Q94.03 17.45 92.58 17.83L92.48 17.74L92.56 17.81Q92.72 16.98 93.18 15.58L93.27 15.67L93.15 15.55Q91.89 15.97 89.84 16.20L89.88 16.24L89.92 16.28Q85.83 20.45 80.61 29.82L80.79 29.99L82.76 26.22L82.84 26.29Q82.44 27.34 82.17 27.91L82.12 27.86L77.59 36.81L77.66 36.87Q78.37 36.78 79.51 36.40L79.36 36.25L79.34 36.61L79.28 36.56Q79.10 37.17 78.80 38.43L78.84 38.47L78.98 38.61Q83.02 37.21 87.86 37.40L87.81 37.36L87.76 37.31Q87.88 38.34 88.07 40.32L88.11 40.36L88.02 40.27Q89.12 40.30 90.18 40.41L90.14 40.37L90.23 40.46Q90.35 41.11 90.62 42.48L90.61 42.47L90.59 42.45Q92.61 42.80 95.61 43.71L95.53 43.63L95.47 43.57Q94.44 41.40 93.53 38.12L93.52 38.12L95.14 38.74L95.08 38.68Q95.68 38.82 96.36 39.17L96.53 39.33L96.36 39.16Q95.70 36.79 95.55 35.12L95.44 35.01L95.55 35.12Q94.89 34.88 93.75 34.65L93.77 34.67L93.74 34.64Q93.50 33.34 93.50 32.46ZM85.59 32.39L85.59 32.39L85.59 32.39Q86.29 31.04 87.85 28.49L87.95 28.59L87.88 28.51Q87.91 29.49 87.87 30.44L87.83 30.41L87.78 30.35Q87.80 31.37 87.84 32.32L87.94 32.42L87.86 32.34Q87.37 32.38 86.80 32.38L86.68 32.27L86.82 32.41Q86.25 32.44 85.64 32.44Z"></path></svg></pre>'''
```

## code
```
    from solvers.svgcaptcha import solver
    t = solver.solve_captcha(svg_captcha)
    print(t)
```

## result :
```
    1548
```