18 lines
547 B
Python
18 lines
547 B
Python
from ficheros import persistenciaFile
|
|
from bbdd import guardar
|
|
from scraping.busca import MiScraping
|
|
|
|
if __name__ == "__main__":
|
|
cadena = "https://www.google.com"
|
|
guardar.guardar_enlace_en_bd(cadena)
|
|
|
|
MiObjScraping = MiScraping("https://ieslamar.org")
|
|
MiObjScraping.start()
|
|
MiObjScraping.join()
|
|
links = MiObjScraping.get_links()
|
|
for link in links:
|
|
print(link)
|
|
|
|
texto = "Este es un ejemplo de texto."
|
|
nombre_fichero = "ejemplo.txt"
|
|
persistenciaFile.guardar_texto_en_fichero(texto, nombre_fichero) |