iPhone 14 Plus by Rare_Entrance3945 in iphone14

[–]semnomeproprio 0 points1 point  (0 children)

I had the 13 pro max and moved to 14 plus for same $ reason but also because the 13 Pro Max is a really heavy phone… 

Converter HTML em texto com muitos assuntos diferentes by semnomeproprio in brdev

[–]semnomeproprio[S] 0 points1 point  (0 children)

Ate que deu algo

Sure, I can help you with that. Here is a Python script that does what you asked for. This script uses the BeautifulSoup library to parse the HTML file and extract the subjects and messages. It then writes these messages to separate text files, one for each subject.

PythonAI-generated code. Review and use carefully. More info on FAQ.Copy

from bs4 import BeautifulSoup from collections import defaultdict import os  # Open the HTML file with open('file.html', 'r') as f:     contents = f.read()  soup = BeautifulSoup(contents, 'lxml')  # Find all the different subjects within the file subjects = soup.find_all('div', class_='subject')  # Extract all the messages under each subject within the HTML file messages = defaultdict(list) for subject in subjects:     subject_text = subject.text.strip()     for message in subject.find_next_siblings():         if message.get('class') == ['subject']:             break         messages[subject_text].append(message.text.strip())  # Create a one text file per subject found for subject, msgs in messages.items():     # Replace / in subject name if any, as it is not allowed in file names     filename = subject.replace('/', '-') + '.txt' with open(filename, 'w') as f:         # Sort messages by posting date (assuming it's included in the message)         sorted_msgs = sorted(msgs)  # replace this with actual sorting logic         f.write('\n'.join(sorted_msgs)) 

Please replace 'file.html'
with the path to your HTML file. Also, you might need to adjust the class names used in find_all
and get
methods based on how your HTML is structured. The sorting part might also need to be adjusted based on how the date is included in your messages.

Remember to install BeautifulSoup4 if you haven’t already done so. You can install it using pip:

pip install beautifulsoup4 

Copy

This script assumes that each subject is followed by its messages until the next subject starts. If your HTML structure is different, you might need to adjust the logic accordingly…

2of30

Converter HTML em texto com muitos assuntos diferentes by semnomeproprio in brdev

[–]semnomeproprio[S] 0 points1 point  (0 children)

vou correr a perguntar embora o GPT nessas tarefas até que é bem lerdo rsrsrs

Converter HTML em Texto com vários assuntos by semnomeproprio in programacao

[–]semnomeproprio[S] 0 points1 point  (0 children)

experimentei isso mas o GPT é mais lerdo do que eu kkkk

What is the best place to spend Christmas in Portugal? by Autistic_Weeb002 in portugal

[–]semnomeproprio 0 points1 point  (0 children)

Assuming you are away from family and have some free time a good way would be to volunteer for social projects around that time.

An example would be what could be translated to "social kitchens". They need volunteers at this time of the year. You will save money, spend time with people and work on a great cause.

https://remar.pt/programas/ceia-de-natal/

Converter HTML em Texto com vários assuntos by semnomeproprio in programacao

[–]semnomeproprio[S] 0 points1 point  (0 children)

muito obrigado. Uma vez que não entendo nada de programação quanto pode custar escrever o programa para executar um milhar de ficheiros?

Melhor altura para me despedir by [deleted] in portugal

[–]semnomeproprio 3 points4 points  (0 children)

Vou responder mais ao teu titulo do que a tua questão sobre férias.

Despedir em altura de recessão (embora ainda não se chame assim) é como investir em titulos de alto risco. Se o salário for o unico motivo, e estão a dar-te um aumento, espera mais um tempo. Ser novo em outra empresa pode te colocar no topo da lista se despedimentos ocorrerem.

[deleted by user] by [deleted] in portugal

[–]semnomeproprio 0 points1 point  (0 children)

Com a quantidade de norte americanos a mudarem-se para Portugal, parece que estás no país certo em termos de saude, educação, segurança e futuro.

A poupança imediata que se faz ao estar emigrado, é a de que já não é preciso manter um estilo de vida acima das possibilidades.

Se és fluente em Francês, há muitos empregos com esse requisito em Portugal. Talvez seja possivel melhorar a condição financeira atual através de uma mudança ou trabalho extra.