Skip to content

Instantly share code, notes, and snippets.

View Xnuvers007's full-sized avatar
💭
Lily Loly Zyaa ❤️

XnuxersXploitXen Xnuvers007

💭
Lily Loly Zyaa ❤️
View GitHub Profile
import requests
from bs4 import BeautifulSoup
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/mlbb', methods=['GET'])
def get_upcoming_skins():
url = "https://mobile-legends.fandom.com/wiki/Upcoming_content"
headers = {
import requests
from bs4 import BeautifulSoup
cookies = {
'wordpress_test_cookie': 'WP+Cookie+check',
'wp-settings-1': 'edit_element_vcUIPanelWidth%3D1021%26ampampampampedit_element_vcUIPanelLeft%3D14px%26ampampampampedit_element_vcUIPanelTop%3D59px%26ampampampampeditor%3Dtinymce%26ampampampamplibraryContent%3Dbrowse%26ampampampampimgsize%3Dfull%26ampamplibraryContent%3Dbrowse%26ampampmfold%3Do%26ampampedit_element_vcUIPanelLeft%3D67px%26ampampedit_element_vcUIPanelTop%3D136px%26ampampposts_list_mode%3Dlist%26uploader%3D1%26editor%3Dtinymce%26edit_element_vcUIPanelLeft%3D230px%26edit_element_vcUIPanelTop%3D137px%26libraryContent%3Dbrowse%26template_window_vcUIPanelWidth%3D1212%26template_window_vcUIPanelLeft%3D142px%26template_window_vcUIPanelTop%3D74px%26mfold%3Do',
'wp-settings-time-1': '1719133983',
'PHPSESSID': 'cc28vdiqhvlek3jv49hib7smd2',
'sc_is_visitor_unique': 'rx12856607.1728455295.7B514FD2EE304FEE97F9BC36B4D3A245.2.2.2.2.2.2.2.2.1',
'vCentminmod': '8735cc5bae5801c849211396cc
@Xnuvers007
Xnuvers007 / script.sh
Last active September 10, 2024 11:14
automation yml for github action to auto commit
#!/bin/bash
REPO_DIR="$(pwd)"
LOG_DIR="$REPO_DIR/logs"
LOG_FILE="$LOG_DIR/log.md"
if [ ! -d "$LOG_DIR" ]; then
mkdir -p "$LOG_DIR"
echo "Logs directory created."
else
@Xnuvers007
Xnuvers007 / animelist.py
Last active August 5, 2024 21:58
scrape anime list from https://nimegami.id/
import requests
from bs4 import BeautifulSoup
import time
headers = {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
}
def fetch_page(url):
@Xnuvers007
Xnuvers007 / flask_main.py
Created July 29, 2024 16:47
instagram photo downloader
from flask import Flask, request, jsonify
import requests
from bs4 import BeautifulSoup
import re
from urllib.parse import urlparse
class InstagramScraperAPI:
URL_REGEX = re.compile(
r'^(?:http|ftp)s?://' # http:// or https://
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}|[A-Z0-9-]{2,})|' # domain...
@Xnuvers007
Xnuvers007 / cursor
Created July 27, 2024 03:47 — forked from swayducky/cursor
This fixes using "cursor" command in WSL
#!/usr/bin/env sh
# LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4
# FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394
# 1) No longer has a hard-coded COMMIT
# 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking
# HOW TO INSTALL:
# 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings
# 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable
@Xnuvers007
Xnuvers007 / flask_main.py
Created July 26, 2024 17:34
exiftool from scraping website
from flask import Flask, request, jsonify
import requests
from bs4 import BeautifulSoup
from urllib.parse import urlparse, parse_qs
import re
app = Flask(__name__)
# Regular expression to validate URLs
URL_REGEX = re.compile(
import matplotlib.pyplot as plt
import networkx as nx
def draw_fsa(G, title):
pos = nx.spring_layout(G)
labels = nx.get_edge_attributes(G, 'label')
plt.figure(figsize=(12, 6))
nx.draw(G, pos, with_labels=True, node_size=2000, node_color='skyblue', font_size=15, font_weight='bold')
nx.draw_networkx_edge_labels(G, pos, edge_labels=labels, font_size=12)
og:Type Lists Of Objects
- apps.saves
An action representing someone saving an app to try later.
- article
This object represents an article on a website. It is the preferred type for blog posts and news stories.
- book
This object type represents a book or publication. This is an appropriate type for ebooks, as well as traditional paperback or hardback books. Do not use this type to represent magazines
@Xnuvers007
Xnuvers007 / snake.py
Created May 19, 2024 11:53
this is script game snake build using python
import pygame
import random
# Initialize Pygame
pygame.init()
# Set up the screen
screen_width = 800
screen_height = 600
screen = pygame.display.set_mode((screen_width, screen_height))