Mostrando postagens com marcador computer. Mostrar todas as postagens
Mostrando postagens com marcador computer. Mostrar todas as postagens

Tracker - Get links from Html

This code use the basic module python native called "urllib" to get all links in web site from your html content read.
This code was wrote in a celular phone Android.


# Extract links in html content
# Author: Wsricardo
# Blog: wsricardo.blogspot.com
#
import urllib.request
import re

# Url for website address
url = 'your url'

# Function to get html content
# from web site (url site address).
req = lambda url: urllib.request.urlopen(url)
# Html file
with open('page.html', 'r') as f:
    data= f.read()

# Use function req to get html content  
#data= req( url ).read().decode('utf-8')

# Regular expression to find links
#g = re.findall(r'(?=href=\").*(?=\")', data)
g = re.findall(r"""<a[^>]+href\s*=\s*['"]([^"]+)['"][^>]*>""", data)

print(g)
for i in g:
    print(i)
count=0
# Save links in text file
f = open('links.txt', 'w')
for i in g:
    f.write(f'{i}\n')
    #count += 1
    #if count == 10:
    #   break
f.close()
#with open('page.html', 'w') as f:
#    f.write( data )

PyGame ou Processing com Python Mode

 Estive testando o uso do Processing e Pygame para desenho gráficos e imagens por algoritmos visando a arte gerada por algoritmos contudo ainda não sei qual adotar por definitivo.

 

 

No momento penso em escolher um para trabalhos iniciais mais simples, sendo ou Processing ou PyGame com uso de suas funções básicas como mostrado no código no link abaixo, ou usando uma GUI como Qt através de linguagem Python ou C++.

Link código



Common Lisp - CLOS Oriented Object

"Cookbook, n. a book containing recipes and other information about the preparation and cooking of food.

A Cookbook is an invaluable resource, as it shows how to do various things in a clear fashion without all the theoretical context. Sometimes you just need to look things up. While cookbooks can never replace proper documentation such as the HyperSpec or books such as Practical Common Lisp, every language deserves a good cookbook, Common Lisp included.

The CL Cookbook aims to tackle all sort of topics, for the beginner as for the more advanced developer."

 

Lisp CookBook  CLOS

Object-Oriented  Lisp (pdf)

Common Lisp Wiki

Electron - Jasvascript App Creating and Deploying Applications


 It is possible using NodeJS, NPM and Electron to build portable desktop applications using Javascript, HTML5 and CSS3 technologies. For this it is necessary to install NodeJS with NPM. After this installation, using npm, Electron is installed.

$ npm i -D electron@latest


After installation when creating projects it is possible to empot it in a binary to distribute it to Linux, Windows systems in a single executable file using (at the moment of this post) the command


$ npx create-electron-app my-app


The above command will generate a directory with application files, to package it we will use,


$ npx run make

 

In the project directory will appear a folder named out in this will be the application binaries.


References

  

Create And Distribution Electron APP Quick Tutorials https://www.electronjs.org/docs/latest/tutorial/quick-start

NodeJS - page to get NodeJS and see documentation https://nodejs.org/en/

ElectronJS - https://www.electronjs.org/ Documentation and examples, source code

ElectronJS Documentation - Application Distribution in Binaries

ElectronForge - tool for creating, publishing, and installing modern Electron applications

Electron Builds