Skip to content

Instantly share code, notes, and snippets.

View leandroluk's full-sized avatar
🏠
Working from home

Leandro Santiago Gomes leandroluk

🏠
Working from home
View GitHub Profile

How to start a new backend Python project

  1. Commit chore: configuring vscode
    • create file .gitignore:
      # Extra folders
      .tmp
      
      # Distribution / packaging
      .Python
      

How to start a new backend NodeJS + Typecript project

  1. Commit chore: configuring vscode

    • create an repository on the git.

    • create file .gitignore:

      node_modules
@leandroluk
leandroluk / docker-compose.yml
Created September 22, 2022 20:11
Docker Compose with Neo4j container and APOC plugins installed
version: '3'
services:
neo4j:
container_name: neo4j
image: neo4j
ports:
- 7473:7473
- 7474:7474
- 7687:7687
@leandroluk
leandroluk / globo_bot.py
Last active March 30, 2022 17:09
Crawler for extract highlighted notice title of globo.com using requests and BeautifulSoup4
import requests
from bs4 import BeautifulSoup
class GloboBot:
def fetch_first_page(self) -> str:
resp = requests.get("https://www.globo.com/", headers={
"User-agent": (
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHT"
"ML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
)