يتم التشغيل بواسطة Blogger.

الثلاثاء، 21 أبريل 2026

Tag:

كود بحث البايثون كل دقيقه

 import requests

import time

import random

import os

from googlesearch import search


# --- إعدادات Virixoo ---

MY_BLOG = "virixoo.com"

KEYWORDS = [

    "Cristiano Ronaldo diet plan 2026 secrets",

    "Best global recipe daily guide for soccer players",

    "Easy international food recipes for young athletes",

    "FlavorFold cooking tips for muscle recovery",

    "Arsenal vs Man City tactical analysis 2026",

    "Supercomputer Premier League winner probability Virixoo",

    "Mikel Arteta hybrid 4-3-3 tactics breakdown",

    "Virixoo English Premier League exclusive injury reports",

    "Haaland fitness and nutrition secrets 2026",

    "Top 10 football stars daily meal routine"

]


def get_unique_proxies():

    """سحب بروكسيات فريدة وجديدة تماماً"""

    print(f"\n[{time.strftime('%H:%M:%S')}] 🔄 Fetching unique proxies for Virixoo...")

    try:

        # رابط جلب بروكسيات متجدد

        url = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=http&timeout=5000&country=all&ssl=all&anonymity=all"

        response = requests.get(url, timeout=15)

        proxies = [p.strip() for p in response.text.split('\n') if p.strip()]

        print(f"✅ Secured {len(proxies)} unique identities.")

        return proxies

    except Exception as e:

        print(f"⚠️ Proxy server error: {e}")

        return []


def run_vps_bot(interval_seconds=60):

    """تشغيل البوت في حلقة لانهائية على الـ VPS"""

    cycle_count = 1

    

    while True:

        print(f"\n🚀 --- STARTING CYCLE #{cycle_count} ---")

        proxy_list = get_unique_proxies()

        

        if not proxy_list:

            print("⚠️ No proxies available. Waiting 30 seconds to retry...")

            time.sleep(30)

            continue


        for query in KEYWORDS:

            # اختيار بروكسي فريد لكل كلمة

            current_proxy = random.choice(proxy_list)

            

            # ضبط البروكسي في نظام الويندوز (VPS)

            os.environ['http_proxy'] = f"http://{current_proxy}"

            os.environ['https_proxy'] = f"http://{current_proxy}"

            

            print(f"\n🔍 Searching: {query}")

            print(f"🛡️ Proxy Identity: {current_proxy}")


            try:

                # البحث في أول 30 نتيجة لضمان رصد الأرشفة الجديدة

                results = search(query, num_results=30, lang="en")

                

                found = False

                for index, url in enumerate(results, 1):

                    if MY_BLOG in url.lower():

                        print(f"🎯 [MATCH FOUND] Virixoo at Rank: #{index}")

                        found = True

                        break

                

                if not found:

                    print("🔘 Status: Indexing in progress...")


                # تأخير بسيط بين الكلمات لعدم إجهاد المعالج

                time.sleep(random.randint(5, 10))


            except Exception as e:

                print(f"⚠️ Proxy failed or Google limit hit. Rotating...")

                time.sleep(5)

                continue


        print(f"\n✅ Cycle #{cycle_count} Finished.")

        print(f"⏳ Sleeping for {interval_seconds} seconds before next run...")

        

        # تصفية البروكسيات القديمة لضمان التجديد

        os.environ.pop('http_proxy', None)

        os.environ.pop('https_proxy', None)

        

        cycle_count += 1

        time.sleep(interval_seconds)


if __name__ == "__main__":

    # تم الضبط على 60 ثانية (دقيقة واحدة) كما طلبت

    run_vps_bot(interval_seconds=60)

About toopmahmood

Hi, My Name is Hafeez. I am a webdesigner, blogspot developer and UI designer. I am a certified Themeforest top contributor and popular at JavaScript engineers. We have a team of professinal programmers, developers work together and make unique blogger templates.

0 التعليقات:

إرسال تعليق