Posts by Rafa0712 • 1 point
4 posts
-
-1
votes2
answers31
viewsQ: Different results doing what I think is the same thing ( Mongoose js )
I have that code var questionscount = await Question.find({ $or: [ { titulo: { $regex: termo, $options: 'i' } }, { corpo: { $regex: termo, $options: 'i' } } ] }).count() console.log(questionscount)…
-
0
votes0
answers10
viewsQ: Portscanner made with scapy returning None
I have a list with doors like portas = [21,22,23,53,80,443], and I go through this list and send the packages: for porta in portas: resposta = sr1(IP(dst='qualquerendereço.com')/TCP(dport=porta,…
python-3.xasked Rafa0712 1 -
-1
votes1
answer98
viewsQ: How do I use pipe when running python programs in the terminal, and what is it for?
example : python3 example.py | example2.py I wanted to know what this is for, I realized that somehow they communicate , but I did not understand the usefulness of this property.
-
2
votes1
answer72
viewsQ: How do greedy, non-greedy quantifiers work?
import re import requests #o req vai ser a requisição á uma página print(re.findall(r'(?<=href=["\'])https?://.+?(?=["\'])',req.text)) The code is to pick up links on a web page. I know he’s…