This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from bs4 import BeautifulSoup | |
| url = 'https://wol.jw.org/en/wol/h/r1/lp-e' | |
| response = requests.get(url) | |
| html_content = response.content | |
| soup = BeautifulSoup(html_content, 'html.parser') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const textElement = document.getElementById('fetch'); | |
| const originalText = textElement.textContent.trim(); | |
| textElement.textContent = ''; | |
| let index = 0; | |
| function typeNextCharacter() { | |
| textElement.textContent += originalText[index]; | |
| index++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener("DOMContentLoaded", function () { | |
| const articles = document.querySelectorAll("article"); | |
| articles.forEach((article) => { | |
| // Looks for (span) elements with footnote class | |
| const footnotes = article.querySelectorAll(".footnote"); | |
| // Creates a separator if there are footnotes present | |
| if (footnotes.length > 0) { | |
| const hrElement = document.createElement("hr"); | |
| article.appendChild(hrElement); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| declare -a apps=( | |
| "rain" | |
| "quotes" | |
| ) | |
| app="$2" | |
| start_app() { |