Comments (8)
Use option
--sections
from wikiextractor.
~/wikiextractor-master/WikiExtractor.py --sections -b 500M --lists -o extracted itwiki-latest-pages-articles.xml.bz2
usage: WikiExtractor.py [-h] [-o OUTPUT] [-b n[KMG]] [-c] [--html] [-l]
[--lists] [-ns ns1,ns2] [--templates TEMPLATES]
[--no-templates] [--escapedoc] [--processes PROCESSES]
[-q] [--debug] [-a] [-v]
input
WikiExtractor.py: error: unrecognized arguments: --sections
from wikiextractor.
Restored the option, in version 2.54.
Thank you.
from wikiextractor.
Thank you for quick response!
I re-run it but nothing changes - still missing 'Bibliografia' section:
Duino Gorin
Anche suo fratello minore Fabrizio è stato un calciatore.
Carriera.
Club.
Cresciuto nel Real San Marco di Venezia, esordì con la maglia del Venezia nel campionato di Serie
Trascorse in rossonero tre stagioni, fino al 1977, quando passò al Monza.
- "La Raccolta Completa degli Album Panini 1975-1976"
- "La Raccolta Completa degli Album Panini 1960-2004" - Indici
- "Almanacco illustrato del calcio 1982". edizione Panini.
from wikiextractor.
The problem with such kind of data - 'section + list'
==Bibliografia==
*''La Raccolta Completa degli Album Panini 1975-1976''
*''La Raccolta Completa degli Album Panini 1960-2004'' - Indici
- ''Almanacco illustrato del calcio 1982''. edizione Panini.
If I put some text before the list it will work:
==Bibliografia==
Bla Bla
-''La Raccolta Completa degli Album Panini 1975-1976''
-''La Raccolta Completa degli Album Panini 1960-2004'' - Indici
- ''Almanacco illustrato del calcio 1982''. edizione Panini.
from wikiextractor.
I added after line 2190:
if line: # FIXME: n is '"'
if Extractor.keepLists:
if len(headers):
if Extractor.keepSections:
items = headers.items()
items.sort()
for i, v in items:
page.append(v)
headers.clear()
and now it works for me
from wikiextractor.
Thank you for the contribution. I merged it into version 2.55.
from wikiextractor.
@attardi How would I also keep the == Section ==
formatting around the text?
from wikiextractor.
Related Issues (20)
- Issues on newer (2023) and older (2019) dumps
- ptwiki-latest error HOT 2
- wikiextractor 3.0.6 not extracting HOT 3
- Why was --keep_tables removed?
- Never finishes and even debug gets stuck in a loop
- Warning: Template Errors HOT 1
- Is Windows supported
- Is Windows 10 supported? HOT 28
- Template errors in article HOT 2
- Add feature to extractPage to also dump the extracted page to json/csv/txt
- [Request for Help] Should I support a template file like `templates.txt` followed the arg `--templates`?
- Bullet points are missing in the final extracted text
- does not extract all wiki
- Parsing seems to exclude some part of the page
- Wikidata Extraction
- How to store a document in a separate txt file instead of a single txt file containing multiple documents
- ValueError: cannot find context for 'fork' & cannot pickle '_io.TextIOWrapper' object HOT 2
- pypi not updated with latest version (3.0.7)
- Get all revisions content
- OSS-Fuzz Integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikiextractor.