Skip to content

Instantly share code, notes, and snippets.

View sayeed205's full-sized avatar
🎯
Focusing

Hitarashi sayeed205

🎯
Focusing
  • https://mydukaan.io
  • West Bengal, India
  • 20:21 (UTC +05:30)
View GitHub Profile
@sayeed205
sayeed205 / apple_music_api.md
Created June 9, 2025 00:56
Use apple music API free

Apple Music API Token Guide

This guide helps you extract a developer token dynamically from Apple Music's public site (https://beta.music.apple.com) and use it to access metadata for songs or albums via Apple’s internal amp-api.

Disclaimer

The unofficial method of scraping tokens from the Apple Music website is not sanctioned by Apple and is subject to break without notice if the website's structure is updated. For production applications, the official developer token method is strongly recommended due to its stability and reliability.

How It Works

The process can be broken down into two main steps:

  1. Find the Core JavaScript File: The initial step is to fetch the HTML of the Apple Music beta website (https://beta.music.apple.com). Within this HTML, we look for a reference to a specific JavaScript file, typically named in a pattern like index-legacy-[hash].js. This file contains the necessary logic and, more importantly, the token.
@sayeed205
sayeed205 / navall.bash
Created May 7, 2025 07:57
This script extracts mutual fund scheme names and their respective net asset values (NAVs) from the AMFI (Association of Mutual Funds in India) data file, available at https://www.amfiindia.com/spages/NAVAll.txt.
(echo "Scheme Name\tAsset Value" && curl -s https://www.amfiindia.com/spages/NAVAll.txt | \
grep -v '^$' | \
awk -F';' 'NR > 1 && NF > 4 {print $4 "\t" $5}') > scheme_data.tsv
@sayeed205
sayeed205 / olx_scrape.py
Created May 7, 2025 07:27
Scrapes "Car Cover" listings from OLX India, saving title, price, location, and link to a CSV file. Skips incomplete listings.
import csv
import requests
from bs4 import BeautifulSoup
# URL for OLX search for "Car Cover"
url = "https://www.olx.in/items/q-car-cover"
# Send GET request with user-agent to avoid blocking
headers = {
  1. Tenant authentication
  2. Create Individual Investor Profile
    {
        "type": "individual",
        "tax_status": "resident_individual",
        "name": "Sayed Ahmed",
        "date_of_birth": "2000-10-22",
        "gender": "male",
        "occupation": "professional",