Telegram Web
๐Ÿ”ฅ Trending Repository: PageIndex

๐Ÿ“ Description: ๐Ÿ“„๐Ÿง  PageIndex: Document Index for Reasoning-based RAG

๐Ÿ”— Repository URL: https://github.com/VectifyAI/PageIndex

๐ŸŒ Website: https://pageindex.ai

๐Ÿ“– Readme: https://github.com/VectifyAI/PageIndex#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 3.1K stars
๐Ÿ‘€ Watchers: 24
๐Ÿด Forks: 243 forks

๐Ÿ’ป Programming Languages: Python - Jupyter Notebook

๐Ÿท๏ธ Related Topics:
#ai #retrieval #reasoning #rag #llm


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: opentui

๐Ÿ“ Description: OpenTUI is a library for building terminal user interfaces (TUIs)

๐Ÿ”— Repository URL: https://github.com/sst/opentui

๐ŸŒ Website: https://opentui.com

๐Ÿ“– Readme: https://github.com/sst/opentui#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 3.3K stars
๐Ÿ‘€ Watchers: 19
๐Ÿด Forks: 122 forks

๐Ÿ’ป Programming Languages: TypeScript - Zig - Go - Tree-sitter Query - Shell - Vue

๐Ÿท๏ธ Related Topics: Not available

==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: awesome-rl-for-cybersecurity

๐Ÿ“ Description: A curated list of resources dedicated to reinforcement learning applied to cyber security.

๐Ÿ”— Repository URL: https://github.com/Kim-Hammar/awesome-rl-for-cybersecurity

๐Ÿ“– Readme: https://github.com/Kim-Hammar/awesome-rl-for-cybersecurity#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 948 stars
๐Ÿ‘€ Watchers: 32
๐Ÿด Forks: 137 forks

๐Ÿ’ป Programming Languages: Not available

๐Ÿท๏ธ Related Topics: Not available

==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceN
โค1
๐Ÿ”ฅ Trending Repository: How-To-Secure-A-Linux-Server

๐Ÿ“ Description: An evolving how-to guide for securing a Linux server.

๐Ÿ”— Repository URL: https://github.com/imthenachoman/How-To-Secure-A-Linux-Server

๐Ÿ“– Readme: https://github.com/imthenachoman/How-To-Secure-A-Linux-Server#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 20.5K stars
๐Ÿ‘€ Watchers: 339
๐Ÿด Forks: 1.3K forks

๐Ÿ’ป Programming Languages: Not available

๐Ÿท๏ธ Related Topics:
#linux #security #server #hardening #security_hardening #linux_server #cc_by_sa #hardening_steps


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: edgevpn

๐Ÿ“ Description: โ›ต The immutable, decentralized, statically built p2p VPN without any central server and automatic discovery! Create decentralized introspectable tunnels over p2p with shared tokens

๐Ÿ”— Repository URL: https://github.com/mudler/edgevpn

๐ŸŒ Website: https://mudler.github.io/edgevpn

๐Ÿ“– Readme: https://github.com/mudler/edgevpn#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 1.3K stars
๐Ÿ‘€ Watchers: 22
๐Ÿด Forks: 149 forks

๐Ÿ’ป Programming Languages: Go - HTML

๐Ÿท๏ธ Related Topics:
#kubernetes #tunnel #golang #networking #mesh_networks #ipfs #nat #blockchain #p2p #vpn #mesh #golang_library #libp2p #cloudvpn #ipfs_blockchain #holepunch #p2pvpn


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: cs-self-learning

๐Ÿ“ Description: ่ฎก็ฎ—ๆœบ่‡ชๅญฆๆŒ‡ๅ—

๐Ÿ”— Repository URL: https://github.com/PKUFlyingPig/cs-self-learning

๐ŸŒ Website: https://csdiy.wiki

๐Ÿ“– Readme: https://github.com/PKUFlyingPig/cs-self-learning#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 68.5K stars
๐Ÿ‘€ Watchers: 341
๐Ÿด Forks: 7.7K forks

๐Ÿ’ป Programming Languages: HTML

๐Ÿท๏ธ Related Topics: Not available

==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ’ก Top 70 Web Scraping Operations in Python

I. Making HTTP Requests (requests)

โ€ข Import the library.
import requests

โ€ข Make a GET request to a URL.
response = requests.get('http://example.com')

โ€ข Check the response status code (200 is OK).
print(response.status_code)

โ€ข Access the raw HTML content (as bytes).
html_bytes = response.content

โ€ข Access the HTML content (as a string).
html_text = response.text

โ€ข Access response headers.
print(response.headers)

โ€ข Send a custom User-Agent header.
headers = {'User-Agent': 'My Cool Scraper 1.0'}
response = requests.get('http://example.com', headers=headers)

โ€ข Pass URL parameters in a request.
params = {'q': 'python scraping'}
response = requests.get('https://www.google.com/search', params=params)

โ€ข Make a POST request with form data.
payload = {'key1': 'value1', 'key2': 'value2'}
response = requests.post('http://httpbin.org/post', data=payload)

โ€ข Handle potential request errors.
try:
response = requests.get('http://example.com', timeout=5)
response.raise_for_status() # Raise an exception for bad status codes
except requests.exceptions.RequestException as e:
print(f"An error occurred: {e}")


II. Parsing HTML with BeautifulSoup (Setup & Navigation)

โ€ข Import the library.
from bs4 import BeautifulSoup

โ€ข Create a BeautifulSoup object from HTML text.
soup = BeautifulSoup(html_text, 'html.parser')

โ€ข Prettify the parsed HTML for readability.
print(soup.prettify())

โ€ข Access a tag directly by name (gets the first one).
title_tag = soup.title

โ€ข Navigate to a tag's parent.
title_parent = soup.title.parent

โ€ข Get an iterable of a tag's children.
for child in soup.head.children:
print(child.name)

โ€ข Get the next sibling tag.
first_p = soup.find('p')
next_p = first_p.find_next_sibling('p')

โ€ข Get the previous sibling tag.
second_p = soup.find_all('p')[1]
prev_p = second_p.find_previous_sibling('p')


III. Finding Elements with BeautifulSoup
โ€ข Find the first occurrence of a tag.
first_link = soup.find('a')

โ€ข Find all occurrences of a tag.
all_links = soup.find_all('a')

โ€ข Find tags by their CSS class.
articles = soup.find_all('div', class_='article-content')

โ€ข Find a tag by its ID.
main_content = soup.find(id='main-container')

โ€ข Find tags by other attributes.
images = soup.find_all('img', attrs={'data-src': True})

โ€ข Find using a list of multiple tags.
headings = soup.find_all(['h1', 'h2', 'h3'])

โ€ข Find using a regular expression.
import re
links_with_blog = soup.find_all('a', href=re.compile(r'blog'))

โ€ข Find using a custom function.
# Finds tags with a 'class' but no 'id'
tags = soup.find_all(lambda tag: tag.has_attr('class') and not tag.has_attr('id'))

โ€ข Limit the number of results.
first_five_links = soup.find_all('a', limit=5)

โ€ข Use CSS Selectors to find one element.
footer = soup.select_one('#footer > p')

โ€ข Use CSS Selectors to find all matching elements.
article_links = soup.select('div.article a')

โ€ข Select direct children using CSS selector.
nav_items = soup.select('ul.nav > li')


IV. Extracting Data with BeautifulSoup

โ€ข Get the text content from a tag.
title_text = soup.title.get_text()

โ€ข Get stripped text content.
link_text = soup.find('a').get_text(strip=True)

โ€ข Get all text from the entire document.
all_text = soup.get_text()

โ€ข Get an attribute's value (like a URL).
link_url = soup.find('a')['href']

โ€ข Get the tag's name.
tag_name = soup.find('h1').name

โ€ข Get all attributes of a tag as a dictionary.
attrs_dict = soup.find('img').attrs


V. Parsing with lxml and XPath

โ€ข Import the library.
from lxml import html

โ€ข Parse HTML content with lxml.
tree = html.fromstring(response.content)

โ€ข Select elements using an XPath expression.
# Selects all <a> tags inside <div> tags with class 'nav'
links = tree.xpath('//div[@class="nav"]/a')

โ€ข Select text content directly with XPath.
# Gets the text of all <h1> tags
h1_texts = tree.xpath('//h1/text()')

โ€ข Select an attribute value with XPath.
# Gets all href attributes from <a> tags
hrefs = tree.xpath('//a/@href')


VI. Handling Dynamic Content (Selenium)

โ€ข Import the webdriver.
from selenium import webdriver

โ€ข Initialize a browser driver.
driver = webdriver.Chrome() # Requires chromedriver

โ€ข Navigate to a webpage.
driver.get('http://example.com')

โ€ข Find an element by its ID.
element = driver.find_element('id', 'my-element-id')

โ€ข Find elements by CSS Selector.
elements = driver.find_elements('css selector', 'div.item')

โ€ข Find an element by XPath.
button = driver.find_element('xpath', '//button[@type="submit"]')

โ€ข Click a button.
button.click()

โ€ข Enter text into an input field.
search_box = driver.find_element('name', 'q')
search_box.send_keys('Python Selenium')

โ€ข Wait for an element to become visible.
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, "myDynamicElement"))
)

โ€ข Get the page source after JavaScript has executed.
dynamic_html = driver.page_source

โ€ข Close the browser window.
driver.quit()


VII. Common Tasks & Best Practices

โ€ข Handle pagination by finding the "Next" link.
next_page_url = soup.find('a', text='Next')['href']

โ€ข Save data to a CSV file.
import csv
with open('data.csv', 'w', newline='', encoding='utf-8') as f:
writer = csv.writer(f)
writer.writerow(['Title', 'Link'])
# writer.writerow([title, url]) in a loop

โ€ข Save data to CSV using pandas.
import pandas as pd
df = pd.DataFrame(data, columns=['Title', 'Link'])
df.to_csv('data.csv', index=False)

โ€ข Use a proxy with requests.
proxies = {'http': 'http://10.10.1.10:3128', 'https': 'http://10.10.1.10:1080'}
requests.get('http://example.com', proxies=proxies)

โ€ข Pause between requests to be polite.
import time
time.sleep(2) # Pause for 2 seconds

โ€ข Handle JSON data from an API.
json_response = requests.get('https://api.example.com/data').json()

โ€ข Download a file (like an image).
img_url = 'http://example.com/image.jpg'
img_data = requests.get(img_url).content
with open('image.jpg', 'wb') as handler:
handler.write(img_data)

โ€ข Parse a sitemap.xml to find all URLs.
# Get the sitemap.xml file and parse it like any other XML/HTML to extract <loc> tags.


VIII. Advanced Frameworks (Scrapy)

โ€ข Create a Scrapy spider (conceptual command).
scrapy genspider example example.com

โ€ข Define a parse method to process the response.
# In your spider class:
def parse(self, response):
# parsing logic here
pass

โ€ข Extract data using Scrapy's CSS selectors.
titles = response.css('h1::text').getall()

โ€ข Extract data using Scrapy's XPath selectors.
links = response.xpath('//a/@href').getall()

โ€ข Yield a dictionary of scraped data.
yield {'title': response.css('title::text').get()}

โ€ข Follow a link to parse the next page.
next_page = response.css('li.next a::attr(href)').get()
if next_page is not None:
yield response.follow(next_page, callback=self.parse)

โ€ข Run a spider from the command line.
scrapy crawl example -o output.json

โ€ข Pass arguments to a spider.
scrapy crawl example -a category=books

โ€ข Create a Scrapy Item for structured data.
import scrapy
class ProductItem(scrapy.Item):
name = scrapy.Field()
price = scrapy.Field()

โ€ข Use an Item Loader to populate Items.
from scrapy.loader import ItemLoader
loader = ItemLoader(item=ProductItem(), response=response)
loader.add_css('name', 'h1.product-name::text')


#Python #WebScraping #BeautifulSoup #Selenium #Requests

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
By: @DataScienceN โœจ
โค3
๐Ÿ”ฅ Trending Repository: nocobase

๐Ÿ“ Description: NocoBase is the most extensible AI-powered no-code/low-code platform for building business applications and enterprise solutions.

๐Ÿ”— Repository URL: https://github.com/nocobase/nocobase

๐ŸŒ Website: https://www.nocobase.com

๐Ÿ“– Readme: https://github.com/nocobase/nocobase#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 17.7K stars
๐Ÿ‘€ Watchers: 147
๐Ÿด Forks: 2K forks

๐Ÿ’ป Programming Languages: TypeScript - JavaScript - Smarty - Shell - Dockerfile - Less

๐Ÿท๏ธ Related Topics:
#internal_tools #crud #crm #admin_dashboard #self_hosted #web_application #project_management #salesforce #developer_tools #airtable #workflows #low_code #no_code #app_builder #internal_tool #nocode #low_code_development_platform #no_code_platform #low_code_platform #low_code_framework


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: alertmanager

๐Ÿ“ Description: Prometheus Alertmanager

๐Ÿ”— Repository URL: https://github.com/prometheus/alertmanager

๐ŸŒ Website: https://prometheus.io

๐Ÿ“– Readme: https://github.com/prometheus/alertmanager#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 7.3K stars
๐Ÿ‘€ Watchers: 166
๐Ÿด Forks: 2.3K forks

๐Ÿ’ป Programming Languages: Go - Elm - HTML - Makefile - TypeScript - JavaScript

๐Ÿท๏ธ Related Topics:
#notifications #slack #monitoring #email #pagerduty #alertmanager #hacktoberfest #deduplication #opsgenie


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: gopeed

๐Ÿ“ Description: A modern download manager that supports all platforms. Built with Golang and Flutter.

๐Ÿ”— Repository URL: https://github.com/GopeedLab/gopeed

๐ŸŒ Website: https://gopeed.com

๐Ÿ“– Readme: https://github.com/GopeedLab/gopeed#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 21K stars
๐Ÿ‘€ Watchers: 167
๐Ÿด Forks: 1.5K forks

๐Ÿ’ป Programming Languages: Dart - Go - C++ - CMake - Swift - Ruby

๐Ÿท๏ธ Related Topics:
#android #windows #macos #golang #http #ios #torrent #downloader #debian #bittorrent #cross_platform #ubuntu #https #flutter #magnet


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: vertex-ai-creative-studio

๐Ÿ“ Description: GenMedia Creative Studio is a Vertex AI generative media user experience highlighting the use of Imagen, Veo, Gemini ๐ŸŒ, Gemini TTS, Chirp 3, Lyria and other generative media APIs on Google Cloud.

๐Ÿ”— Repository URL: https://github.com/GoogleCloudPlatform/vertex-ai-creative-studio

๐Ÿ“– Readme: https://github.com/GoogleCloudPlatform/vertex-ai-creative-studio#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 512 stars
๐Ÿ‘€ Watchers: 19
๐Ÿด Forks: 200 forks

๐Ÿ’ป Programming Languages: Jupyter Notebook - Python - TypeScript - Go - JavaScript - Shell

๐Ÿท๏ธ Related Topics:
#google_cloud #gemini #chirp #imagen #veo #lyria #vertex_ai #nano_banana


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: Parabolic

๐Ÿ“ Description: Download web video and audio

๐Ÿ”— Repository URL: https://github.com/NickvisionApps/Parabolic

๐ŸŒ Website: https://flathub.org/apps/details/org.nickvision.tubeconverter

๐Ÿ“– Readme: https://github.com/NickvisionApps/Parabolic#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 4.1K stars
๐Ÿ‘€ Watchers: 28
๐Ÿด Forks: 188 forks

๐Ÿ’ป Programming Languages: C++ - CMake - Python - Inno Setup - C - CSS

๐Ÿท๏ธ Related Topics:
#music #windows #downloader #youtube #qt #cpp #youtube_dl #gnome #videos #flathub #gtk4 #yt_dlp #libadwaita


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: localstack

๐Ÿ“ Description: ๐Ÿ’ป A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline

๐Ÿ”— Repository URL: https://github.com/localstack/localstack

๐ŸŒ Website: https://localstack.cloud

๐Ÿ“– Readme: https://github.com/localstack/localstack#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 61.1K stars
๐Ÿ‘€ Watchers: 514
๐Ÿด Forks: 4.3K forks

๐Ÿ’ป Programming Languages: Python - Shell - Makefile - ANTLR - JavaScript - Java

๐Ÿท๏ธ Related Topics:
#python #testing #aws #cloud #continuous_integration #developer_tools #localstack


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: go-sdk

๐Ÿ“ Description: The official Go SDK for Model Context Protocol servers and clients. Maintained in collaboration with Google.

๐Ÿ”— Repository URL: https://github.com/modelcontextprotocol/go-sdk

๐Ÿ“– Readme: https://github.com/modelcontextprotocol/go-sdk#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 2.7K stars
๐Ÿ‘€ Watchers: 39
๐Ÿด Forks: 249 forks

๐Ÿ’ป Programming Languages: Go

๐Ÿท๏ธ Related Topics: Not available

==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: rachoon

๐Ÿ“ Description: ๐Ÿฆ Rachoon โ€” A self-hostable way to handle invoices

๐Ÿ”— Repository URL: https://github.com/ad-on-is/rachoon

๐Ÿ“– Readme: https://github.com/ad-on-is/rachoon#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 292 stars
๐Ÿ‘€ Watchers: 4
๐Ÿด Forks: 14 forks

๐Ÿ’ป Programming Languages: TypeScript - Vue - HTML - SCSS - Dockerfile - JavaScript - Shell

๐Ÿท๏ธ Related Topics: Not available

==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: Kotatsu

๐Ÿ“ Description: Manga reader for Android

๐Ÿ”— Repository URL: https://github.com/KotatsuApp/Kotatsu

๐ŸŒ Website: https://kotatsu.app

๐Ÿ“– Readme: https://github.com/KotatsuApp/Kotatsu#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 7.2K stars
๐Ÿ‘€ Watchers: 72
๐Ÿด Forks: 366 forks

๐Ÿ’ป Programming Languages: Kotlin

๐Ÿท๏ธ Related Topics:
#android #manga #comics #mangareader #manga_reader #webtoon


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: ggml

๐Ÿ“ Description: Tensor library for machine learning

๐Ÿ”— Repository URL: https://github.com/ggml-org/ggml

๐Ÿ“– Readme: https://github.com/ggml-org/ggml#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 13.4K stars
๐Ÿ‘€ Watchers: 141
๐Ÿด Forks: 1.4K forks

๐Ÿ’ป Programming Languages: C++ - C - Cuda - Metal - GLSL - CMake

๐Ÿท๏ธ Related Topics:
#machine_learning #automatic_differentiation #tensor_algebra #large_language_models


==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
๐Ÿ”ฅ Trending Repository: asm-lessons

๐Ÿ“ Description: FFMPEG Assembly Language Lessons

๐Ÿ”— Repository URL: https://github.com/FFmpeg/asm-lessons

๐Ÿ“– Readme: https://github.com/FFmpeg/asm-lessons#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 9.7K stars
๐Ÿ‘€ Watchers: 153
๐Ÿด Forks: 288 forks

๐Ÿ’ป Programming Languages: Not available

๐Ÿท๏ธ Related Topics: Not available

==================================
๐Ÿง  By: https://www.tgoop.com/DataScienceM
2025/11/07 02:06:52
Back to Top
HTML Embed Code: