Skip to content

Instantly share code, notes, and snippets.

import bs4
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
import csv
myurl = "https://www.lider.cl/supermercado/category/Despensa/Pastas/Fideos-Largos/_/N-673e4a"
uClient = uReq(myurl)
page_html = uClient.read()
nombres = []
marcas = []
@Xaekai
Xaekai / ipc.example.js
Created July 11, 2016 18:12
Example of Interprocess communication in Node.js through a UNIX domain socket
/*
**
** Example of Interprocess communication in Node.js through a UNIX domain socket
**
** Usage:
** server> MODE=server node ipc.example.js
** client> MODE=client node ipc.example.js
**
*/
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active September 20, 2024 07:39
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');