err_cert_date_invalid
ModuleNotFoundError: No module named 'webdriver'
import webdriver
from selenium.webdriver.chrome.options import Optionsoptions = Options()
options.page_load_strategy = 'normal'driver = webdriver.Chrome(options=options)driver.get("http://www.google.com")driver.quit()
Solucion
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.google.com")
driver.quit()
tener presente que la version de Chrome (por ejemplo) sea compatible con con WebDriver utilizado
Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml
error: Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml
poner en gradle.properties
android.enableJetifier=true
android.useAndroidX=true
Error: Unresolved reference
Android Studio no reconoce las variables.
solucion:
ir a build.gradle (Module)
borrar todo plugins{ } aparece al principio y puede tener 2 id
remplazar por
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
Error: Failed to create Anaconda menus, Abort Retry Ignore
nombre error: Failed to create Anaconda menus, Abort Retry Ignore
entrar a: https://repo.anaconda.com/archive/
Bajar algunas de estas opciones según SO.
Anaconda2-5.3.1-Linux-x86.sh | 507.6M | 2018-11-19 13:37:35 | 5685ac1d4a14c4c254cbafc612c77e77 |
Anaconda2-5.3.1-Linux-x86_64.sh | 617.8M | 2018-11-19 13:37:31 | 4da47b83b1eeac1ca8df0a43f6f580c8 |
Anaconda2-5.3.1-MacOSX-x86_64.pkg | 628.4M | 2018-11-19 13:37:38 | d6139f371aa6cf81c3f002ecdd09b748 |
Anaconda2-5.3.1-MacOSX-x86_64.sh | 539.0M | 2018-11-19 13:37:43 | 559606f0dda021daa1afd612b2e3e37c |
Anaconda2-5.3.1-Windows-x86.exe | 458.1M | 2018-11-19 13:38:32 | 7286587bcfb6a5a164d70fe02c1968d5 |
Anaconda2-5.3.1-Windows-x86_64.exe | 580.1M | 2018-11-19 13:37:47 | ff29ffcd1f767cde91bab71110c00294 |
01100110 01101001 01101110 00100000 01100100 01100101 00100000 01100011 01101111 01100100 01101001 01100111 01101111
Error 0x800B010C - Tratando de instalar SQL Server management studio
Paso 0: Descargar e instalar como administrador el siguiente programa:
http://media.kaspersky.com/utilities/CorporateUtilities/rootsupd.zip
Paso 1:Ejecutar el siguiente comando
c: \rootsupd.exe /c /t:C:\rootsupd
Paso 2:Usar el siguiente comando para instalar el certificado necesario
c: \rootsupd.exe authroots.sst "(NOMBRE DE DE LA CERTIFICACION SIN COMILLAS)"
Paso 3(OPCIONAL):Comando para eliminar certificado
c: \rootsupd.exe authroots.sst
01100110 01101001 01101110 00100000 01100100 01100101 00100000 01100011 01101111 01100100 01101001 01100111 01101111
sql error sql logic error or missing database
si este problema aparece sobre una tabla al hacer un insert, puede que se trate de los parametros de los campos, mas especificamente en el siguiente ejemplo...
CREATE TABLE IF NOT EXISTS[TablaConfiguracion] (
[idConfig] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
[primeraVez] VARCHAR(4) NOT NULL,
[idUsuarioActual] INTEGER NOT NULL,
FOREIGN KEY(idUsuarioActual) REFERENCES TablaCajeros(idCajero));
para esta tabla se arreglo el problema sacando el NOT en el segundo y tercer campo.
01100110 01101001 01101110 00100000 01100100 01100101 00100000 01100011 01101111 01100100 01101001 01100111 01101111
TypeError: 'Rule' object is not iterable
Este error ocurre porque falta una coma en el parametro rule de de la clase que hereda CrawlSpider
así se puede encontrar
rules = (
Rule(
LinkExtractor(
allow = r'/Hotel_Review'
), follow=True
, callback= "parce_hotel"
)
)
así se debe ver
rules = (
Rule(
LinkExtractor(
allow = r'/Hotel_Review'
), follow=True
, callback= "parce_hotel"
),
)
sino no lo toma como un objeto iterable
pequeños detalles, grandes errores
01100110 01101001 01101110 00100000 01100100 01100101 00100000 01100011 01101111 01100100 01101001 01100111 01101111
Manejo de errores en Web Scraping
Anticipar el faltante de contenido string en una extracción:
for noticia in noticias:
item = ItemLoader(Noticia(), response.body)
titular = noticia.find('a').text
descripcion = noticia.find('p').text
item.add_value('titular', titular)
item.add_value('descripcion', descripcion)
yield item.load_item()
cuando se extraen datos, esperando siempre que haya texto en su contenido puede ocurrir el error de
AttributeError: 'NoneType' object has no attribute 'text'
significa que espera extraer algo pero es de tipo NONE ahí esta el conflicto, se resuelve introduciendo un if que anticipe esta situación.
for noticia in noticias:
item = ItemLoader(Noticia(), response.body)
titular = noticia.find('a')
descripcion = noticia.find('p').text
if (titular != None):
titular = titular.text
else:
titular = 'N/A'
item.add_value('titular', titular)
item.add_value('descripcion', descripcion)
yield item.load_item()
01100110 01101001 01101110 00100000 01100100 01100101 00100000 01100011 01101111 01100100 01101001 01100111 01101111
XAMPP - mysql_error.txt
XAMPP
¿que hago si me sale este error en xampp "mysql_error.txt"?
[ERROR]
Do you already have another mysqld server running on port: 3306 ?
-
https://youtube.com/shorts/6mLN39EE5hE?si=ptldeUKRZ9jqJdvK