New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should remove alerts like "references needed" and such #169
Comments
No ví este problema en los artículos que revisé. Todos los avisos tipo banner Artículos que revisé:
Los avisos que sí se mantienen en CDPedia son los del tipo |
Me parece bien! Gracias! |
En la wiki en español hay 12 plantillas (con varios alias) que generan estos aviso en línea:
Todos estos avisos tienen un HTML de la forma: El código que hice para encontrar estos avisos es algo así: sup_tag = lambda tag: tag.name == 'sup' and not tag.attrs
for tag in soup.find_all(sup_tag):
children = tag.children
try:
if next(children) == '[' and next(children).name == 'i':
print(tag.text)
except StopIteration:
continue Debería testearse para que sólo saque lo que queremos. Hice una prueba con los
No sé si el código es óptimo, pero sirve para lo que queremos hacer. |
Me parece bien, saquémoslas. Con respecto al código, me parece que ejecutar una función en cada tag que encuentre va a tardar millón de años, yo pediría todos los tags y los iría revisando afuera... |
See http://127.0.0.1:8000/wiki/Transporte_p%C3%BAblico
It has an alert that says: "Este artículo o sección necesita referencias ..."
The text was updated successfully, but these errors were encountered: