Sergio Madrid Farfan
commited on
Commit
·
fe5fa8f
1
Parent(s):
c450b2b
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!pip install PyPDF2
|
2 |
+
import PyPDF2
|
3 |
+
archivo_pdf = open('/content/drive/MyDrive/FULL-Seminario/Proyectos/rac_gpt/notebooks/pruebas/https___www.aerocivil.gov.co_normatividad_RAC_RAC 1 - Definiciones.pdf', 'rb')
|
4 |
+
lector_pdf = PyPDF2.PdfReader(archivo_pdf)
|
5 |
+
contenido_texto = ""
|
6 |
+
for pagina in lector_pdf.pages:
|
7 |
+
contenido_texto += pagina.extract_text()
|
8 |
+
archivo_pdf.close()
|
9 |
+
archivo_texto = open('/content/drive/MyDrive/FULL-Seminario/Proyectos/rac_gpt/notebooks/pruebas/https___www.aerocivil.gov.co_normatividad_RAC_RAC 1 - Definiciones.txt', 'w')
|
10 |
+
archivo_texto.write(contenido_texto)
|
11 |
+
archivo_texto.close()
|
12 |
+
git push
|