Coder Social home page Coder Social logo

Languages about yugioh_cardlist_scraper HOT 8 OPEN

blal1 avatar blal1 commented on August 16, 2024
Languages

from yugioh_cardlist_scraper.

Comments (8)

Pietracoops avatar Pietracoops commented on August 16, 2024

from yugioh_cardlist_scraper.

Pietracoops avatar Pietracoops commented on August 16, 2024

New branch has been created called experimental-language. Checkout this branch and call the script as instructed in the readme.md file. Use the parameter "--language fr". I'm still running tests, and working out some of the code - though give it a try, and if you run into any issues list them here and I'll tackle them.

from yugioh_cardlist_scraper.

blal1 avatar blal1 commented on August 16, 2024

Hi,
Thanks for your work
Now, the scraper works correctly and I can download the french cards without any problems
For the wiki, the url is different then the English's

https://yugioh.fandom.com/fr/wiki/Wiki_Yu-Gi-Oh!
That is the french Ygo wiki
So, sorry about my English

from yugioh_cardlist_scraper.

Pietracoops avatar Pietracoops commented on August 16, 2024

No problem, I also speak french so you can send me emails in french if it makes it easier.

I pushed some more changes this morning as I noticed the script was crashing on card sets that were not fully released just yet (Maze of Memories - march 10th release), so if you run into that issue, pull from the branch.

Also, I've been playing around with the languages on fandom and noticed that they dont have multilingual card pages (e.g. https://yugioh.fandom.com/wiki/Flame_Manipulator -> https://yugioh.fandom.com/fr/wiki/Flame_Manipulator - this doesn't work). So there is still work to be done on this and will only be available in english for now.

from yugioh_cardlist_scraper.

blal1 avatar blal1 commented on August 16, 2024

Hello,
I tested the program and encountered a bug. When he downloads the French cards and when he downloads the 144th pack, he displays the following errors before exiting the program.
Packs Processed |█████████▏⚠︎ | (!) 144/632 [23%] in 2:32.5 (0.95/s)
Traceback (most recent call last):
File "C:\yugioh_cardlist_scraper-experimental-language\yugioh_cardlist_scraper-experimental-language\main.py", line 94, in
if detect(english_name) != 'en':
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eleve\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector_factory.py", line 130, in detect
return detector.detect()
^^^^^^^^^^^^^^^^^
File "C:\Users\Eleve\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector.py", line 136, in detect
probabilities = self.get_probabilities()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eleve\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector.py", line 143, in get_probabilities
self._detect_block()
File "C:\Users\Eleve\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector.py", line 150, in _detect_block
raise LangDetectException(ErrorCode.CantDetectError, 'No features in text.')
langdetect.lang_detect_exception.LangDetectException: No features in text.

C:\Users\Eleve>Python C:\yugioh_cardlist_scraper-experimental-language\yugioh_cardlist_scraper-experimental-language\main.py --language fr

from yugioh_cardlist_scraper.

blal1 avatar blal1 commented on August 16, 2024

Hello!
Sorry for inconvenience,
I tested the programm with experimental languages. But when I'm trying to download the french packs I got the following errors. Especially, when he's trying to download the 144th pack. After that, the programm doesn't continue with downloding the next packs.
The following lines are the errors.

Packs Processed |█████████▏⚠︎ | (!) 144/634 [23%] in 2:25.8 (0.99/s)
Traceback (most recent call last):
File "C:\ygo\ygo\main.py", line 94, in
if detect(english_name) != 'en':
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Bil\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector_factory.py", line 130, in detect
return detector.detect()
^^^^^^^^^^^^^^^^^
File "C:\Users\Bil\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector.py", line 136, in detect
probabilities = self.get_probabilities()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Bil\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector.py", line 143, in get_probabilities
self._detect_block()
File "C:\Users\Eleve\AppData\Local\Programs\Python\Python311\Lib\site-packages\langdetect\detector.py", line 150, in _detect_block
raise LangDetectException(ErrorCode.CantDetectError, 'No features in text.')
langdetect.lang_detect_exception.LangDetectException: No features in text.

Thanks,

from yugioh_cardlist_scraper.

Pietracoops avatar Pietracoops commented on August 16, 2024

Try pulling the latest changes, it should resolve that issue! It had to do with a feature that I tried to implement to catch certain Japanese edge cases - though when it encounters a card that is simply "7", it fails to find enough features to detect what language it is.

from yugioh_cardlist_scraper.

enamespace avatar enamespace commented on August 16, 2024

Hi, I want to download Chinese version cards, but it seems not supported for now.

from yugioh_cardlist_scraper.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.