Conversion to Python version 3.6 In this class we will convert our program from version 2.7 to version 3.6 # Proyecto Web Scraping para SEO con Python # Clase 11: Conversión a Python versión 3.6 # webscrap11 import urllib.request, urllib.parse, urllib.error import re import sys url_sitio = “https://evginformatica.blogspot.com/” url_inicio=url_sitio…
Category: Python-en
Python-en category
Web Scraping Course with Python – Class 10
Save results to file In this class we will see how we can write the results to a file instead of the console. To write the results to a file we can proceed in several ways: . open a file and change print to write . redirect standard output to…
Web Scraping Course for SEO – Class 9
Student task: Get tag <h1> It is left as an exercise for the student to obtain the h1 tag from each web page.
Web Scraping Course for SEO – Class 8
Get metatag description On each page we will obtain the description included in the metatag <meta content = ‘…’ name = ‘description’ /> # -*- coding: iso-8859-15 -*- # Proyecto Web Scraping para SEO con Python # Clase 8: Obtener metatag description# webscrap8 import urllib import re url_sitio =…
Web Scraping Course for SEO – Class 7
Get metatag title On each page we will obtain the title included in the html <title> tag # -*- coding: iso-8859-15 -*- # Web Scraping Course for SEO with Python # Class 7: Get metatag title# webscrap7 import urllib import re url_sitio = “https://evginformatica.blogspot.com/” url_inicio=url_sitio lista_enlaces = [] titulos…