Flex Coder
1.97K subscribers
246 photos
47 videos
2 files
215 links
Uɴʟᴇᴀsʜ Tʜᴇ Pᴏᴡᴇʀ Oғ Bᴏᴛ Cᴏᴅɪɴɢ. Gᴇᴛ Fʀᴇᴇ Bᴏᴛ & Cᴏᴅᴇ Oɴ Oᴜʀ Cʜᴀɴɴᴇʟ 🧑‍💻

🔰 Oᴜʀ Yᴏᴜᴛᴜʙᴇ Cʜᴀɴɴᴇʟ: https://www.youtube.com/@Flex_Coder

📞 Cᴏɴᴛᴀᴄᴛ Us Oɴ: @Flex_Hide
🌐 Oɴʟɪɴᴇ Fʀᴏᴍ: 3\07\2024
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
🚀 Here Is File Sharing Bot New Update in Python! 

As many users were facing issues due to being hosted on a single platform like, problem where face like: 

- ⚠️ Low performance 
- 🚫 No code access 
- 📉 Limited features 
- And more


So, in this new File Sharing Bot update, you get: 

High performance 
🔗 Force join option 
🗂️ Multiple channel & folder support 
🧹 Auto file deletion 
🔒 Content protection 
⬆️ Admin-only file upload 
📢 Admin-only broadcast 
💾 Easy user data backup


 
⚠️ Note: Script is ready — currently finding the best free hosting! Setup video will be uploaded soon on our YouTube channel.
👍3🔥1🥰1
New Video Uploaded 👇
https://youtu.be/1JBQ8R08iw4

⚠️ Note: Like, Share And Subscribe
🎉3👍2
API source code dropping soon! Stay tuned to our channel for the update.

Give Reaction 🙂
👍3😁3👀21
🌐 WEBSITE SCRAPING API

<?php

$download_file = false;

header('Content-Type: application/json');

if (isset($_GET['url'])) {
    $url = $_GET['url'];

    if (filter_var($url, FILTER_VALIDATE_URL)) {
        $host = parse_url($url, PHP_URL_HOST);
        $unique = uniqid();
        $baseName = $host . "_" . $unique;
        $zipName = $baseName . ".zip";
        $zipTempPath = sys_get_temp_dir() . "/" . $zipName;

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 30);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        $html = curl_exec($ch);
        if (curl_errno($ch)) {
            echo json_encode(["status" => "error", "message" => "cURL error"]);
            exit;
        }
        curl_close($ch);
        if ($html === false) {
            echo json_encode(["status" => "error", "message" => "Failed to fetch HTML"]);
            exit;
        }

        preg_match_all('/<img[^>]+src=["\'](.*?)["\']/i', $html, $images);
        preg_match_all('/<link[^>]+href=["\'](.*?)["\']/i', $html, $links);
        preg_match_all('/<script[^>]+src=["\'](.*?)["\']/i', $html, $scripts);
        $resources = array_merge($images[1], $links[1], $scripts[1]);

        $zip = new ZipArchive();
        if ($zip->open($zipTempPath, ZipArchive::CREATE) !== TRUE) {
            echo json_encode(["status" => "error", "message" => "Cannot create ZIP"]);
            exit;
        }

        $zip->addFromString("index.html", $html);

        foreach ($resources as $res) {
            $resUrl = parse_url($res, PHP_URL_SCHEME) ? $res : rtrim($url, '/') . '/' . ltrim($res, '/');
            $resData = @file_get_contents($resUrl);
            if ($resData !== false) {
                $resPath = parse_url($resUrl, PHP_URL_PATH);
                $ext = pathinfo($resPath, PATHINFO_EXTENSION);
                $fileName = basename($resPath);
                if ($ext == "css") {
                    $zip->addFromString("css/" . $fileName, $resData);
                } elseif ($ext == "js") {
                    $zip->addFromString("js/" . $fileName, $resData);
                } elseif (in_array($ext, ["jpg", "jpeg", "png", "gif", "webp", "svg"])) {
                    $zip->addFromString("images/" . $fileName, $resData);
                } else {
                    $zip->addFromString("assets/" . $fileName, $resData);
                }
            }
        }

        $zip->close();

        if ($download_file) {
            $savePath = "downloads/";
            if (!file_exists($savePath)) mkdir($savePath, 0777, true);
            $finalPath = $savePath . $zipName;

            if (copy($zipTempPath, $finalPath)) {
                unlink($zipTempPath);
                $urlPath = "https://" . $_SERVER['HTTP_HOST'] . "/" . $finalPath;
                echo json_encode(["status" => "success", "url" => $urlPath]);
            } else {
                echo json_encode(["status" => "error", "message" => "Failed to move ZIP file"]);
            }
        } else {
            header('Content-Type: application/zip');
            header('Content-Disposition: attachment; filename="' . $host . '.zip"');
            header('Content-Length: ' . filesize($zipTempPath));
            flush();
            readfile($zipTempPath);
            unlink($zipTempPath);
            exit;
        }
    } else {
        echo json_encode(["status" => "error", "message" => "Invalid URL"]);
    }
} else {
    echo json_encode(["status" => "error", "message" => "No URL provided"]);
}
?>

👀 View Details & Response 👇
Click Here

⚠️ Note: Follow Us On Github & Make Sure To Give Star On Repository
👍5🔥1🏆1
New video is going live today at 6:00 PM!

Today’s video will be API setup video. Further thumbnail will also look very similar like current video. As This Is Let You Know That's This Is Part Of Our Api Setup Video.

⚠️ Note: I won’t be using my voice in this one so it might be a bit longer than usual.
But I promise, it’s packed with value:
Useful knowledge, full API code, and step-by-step guidance for everyone who wants to learn without coding!

I’m sharing this from the heart, hoping it helps you grow and yes, every view and like means a lot to me too!
👍2🎉1
New Video Uploaded 👇
https://youtu.be/csSHxZSaFB4

⚠️ Note: Like, Share And Subscribe
👍21
Flex Coder
New Video Uploaded 👇 https://youtu.be/csSHxZSaFB4 ⚠️ Note: Like, Share And Subscribe
Aagr Nhi Dekha Hoga To Dekh Lena 🙂

New Api Setup Video Jaldi Aane Wale Hai 😚
2👍2
New Video Uploaded 👇
https://youtu.be/pHYuS9jLW7Y

⚠️ Note: Like, Share And Subscribe
1👍2🕊2
🎬 Movie Details Api

🧑‍💻 Code:

export default async function handler(req, res) {
  const { search } = req.query;

  if (!search) {
    return res.status(400).json({ error: "Please provide ?search=movie_name" });
  }

  try {
    const response = await fetch(`https://api.tvmaze.com/search/shows?q=${encodeURIComponent(search)}`);
    const data = await response.json();

    if (!data.length) {
      return res.status(404).json({ error: "No results found" });
    }

    const show = data[0].show;

    res.status(200).json({
      title: show.name,
      genres: show.genres,
      language: show.language,
      rating: show.rating?.average,
      summary: show.summary?.replace(/<[^>]+>/g, ''),
      image: show.image?.original || show.image?.medium || null,
      url: show.url
    });
  } catch (err) {
    res.status(500).json({ error: "Something went wrong" });
  }
}

👀 View Details & Response 👇
View Now

📹 Setup Video: https://youtu.be/jXFLL1gva4o
👍3🔥2
Flex Coder
🎬 Movie Details Api 🧑‍💻 Code: export default async function handler(req, res) {   const { search } = req.query;   if (!search) {     return res.status(400).json({ error: "Please provide ?search=movie_name" });   }   try {     const response = await fet…
Abhi tak nahi dekha? To zaroor dekh lena!

🙂 Playlist mein aapko bhot kuch kaafi useful cheezein milengi.

API setup chahiye?
Step-by-step videos se sab clear hoga.

👉 Playlist Click Karein

📂 Koi API code chahiye aur nahi mila?
Mujhe batao, turant share kar dunga!
⚙️ Aapki need meri priority hai.

👉 Contact Me

🙏 Support mile ya na mile, help karta rahunga.

😔 Profit ho ya na ho, bas aapka saath chahiye.

❤️ Agar kaam pasand aaye to Subscribe zaroor karein!!
👍3🔥3
✍️ Shayari Api

🧑‍💻 Half Code:

import express from "express";
import cors from "cors";
import router from "./routes/route.js";
import languages_array from "./languages.js";

const port = process.env.PORT || 3000;
const app = express();

app.use(cors({
    origin: "*",
    methods: ['GET', 'POST']
}));

app.get("/", (req, res) => {
    res.send("API Is Running");
});

app.get("/language-list", (req, res) => {
    res.send(languages_array);
});

app.use("/language", router);

app.listen(port, () => {
    console.log(App running on port ${port});
});

export default app;

👀 View Details & Response 👇
View Now

📹 Setup Video:
https://youtu.be/n5yxR1aOmlw
👍2😍2
💬 Advice Api

🧑‍💻 Code:

export default async function handler(req, res) {
  const response = await fetch("https://api.adviceslip.com/advice");
  const data = await response.json();
  res.status(200).json({ advice: data.slip.advice });
}

👀 View Details & Response 👇
View Now

📹 Setup Video:
https://youtu.be/NOVCSXr9yOc
1👍1