vortipin.blogg.se

Load saved files in cdpedia
Load saved files in cdpedia







load saved files in cdpedia
  1. #Load saved files in cdpedia how to
  2. #Load saved files in cdpedia full
  3. #Load saved files in cdpedia free
  4. #Load saved files in cdpedia windows

Windows: True or False, indicating if Windows support needs to be included in CDPedia. tar.xz file, aimed to be distributed in pendrives or similar, or iso, aimed to be burned into CDs or DVDs. Type: the type of file that will hold the CDPedia: tarball to create a. Imagtypes.yaml: here you need to create a new entry for the language you're creating, and the different CDPedia images that you could produce in that language. Let's see these in detail (you can see current files for real life examples): So, to add a new language you need to take care of different things: language configuration ( imagtypes.yaml and languages.yaml), service texts for the running CDPedia, and project web page for the public. We encourage you to submit a PR with those structures for the new language so they are available for everybody else, thanks! You can add the proper structures for another language of your preference, and generate the CDPedia for that language. cdpetron.py /opt/somedir es -test-mode -extra-pages=/tmp/extra.txt -page-limit=50ĬDpedia is multilanguage, so you can generate it in Spanish, Portuguese, German, or whatever, with the only condition than the there is a Wikipedia online for that languageĬurrently in the project everything is setup for the following languages: Second one is -page-limit, to limit the quantity of pages to download/scrap.įor example, then. That said, the best way to use these are together with -test-mode, which makes everything faster.įirst one is -extra-pages, which allows you to specify a file with a list of pages to be downloaded. These are not to be confused with -test-mode, which builds a small functional CDPedia, but with first 1000 pages, not the ones you want to check. The cdpetron script has a specific option to help testing some specific pages when developing. Run the CDPetron with -help for info about those. If you're just developing and want to do a quick test, you can run the CDPetron with the -test-mode option, and it will not dump everything from the web, just some pages./cdpetron.py /opt/somedir es -test-modeĪlso, you have several parameters like -no-lists, -no-scrap, and -no-clean which will help you to not do everything again on every test cycle. No further dependencies are needed by the final running CDPedia, the creation process already manages its Python dependencies. Some helpers (like run or test) use fades to deal with virtualenvs automatically, it's a good idea to also have it installed. The following programs are used by the building process (needs to be previously installed): pngquant That said, you may want to use -no-lists and -no-scrap options, to avoid getting fresh info to work on.

#Load saved files in cdpedia full

If the process is interrupted (a full CDPedia generation may take days), don't despair! The generation process checks for what is already done to avoid doing it again so even it doesn't exactly resumes from where was interrupted, a lot of time is saved in the subsequent runs. cdpetron.py /opt/somedir es -image-type dvd5

load saved files in cdpedia

To specify another image type to be built, you can use the -image-type option (remember that it needs to be defined in the imagtypes.yaml file). In those examples CDPetron will produce the tarbig image type that includes all the articles and most of the pictures.

#Load saved files in cdpedia free

be sure you have a lot of free space!), and then the language. The first parameter is where all the dump from the web will go (pages, images, etc.

load saved files in cdpedia

cdpetron.py /opt/somedir esĪlternatively, just use fades to deal with the virtualenv automatically: fades -r requirements-dev.txt cdpetron.py /opt/somedir es The next step is to run the CDPetron (for which you need to first create and activate a virtualenv): virtualenv -python=python3 venv Then, you need to be sure that there is configuration for es in the languages.yaml file, and for dvd (in the es section) in the imagtypes.yaml file.

#Load saved files in cdpedia how to

How to create an imageĪll is automated nowadays, but you need to be sure that there is configuration for the image type you want to produce.įor example, let's suppose you want to create a DVD version of Spanish Wikipedia. CDPedia is a project to make the Wikipedia accesable offline.Ĭheck also the official page for normal humans.









Load saved files in cdpedia