اذهب إلى المحتوى

Badi Explorer

الأعضاء
  • المساهمات

    39
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو Badi Explorer

  1. لا يعمل الكود مع مكتبة selenium
  2. import requests, re def get_data(): from selenium import webdriver from selenium.webdriver.chrome.options import Options from bs4 import BeautifulSoup options = Options() options.add_argument("--headless") options.add_argument('--disable-gpu') options.add_argument('--no-sandbox') options.add_argument('--log-level=3') prefs = { "profile.default_content_setting_values": { "images": 2, "plugins": 2, "popups": 2, "notifications": 2, "media_stream": 2, } } options.add_experimental_option("prefs", prefs) drive = webdriver.Chrome(options = options) drive.get ( "https://world-weather.info/") html = drive.page_source my_headers = {"user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36" } # the_response = requests.get( headers= my_headers) # if the_response.ok: his_soup = BeautifulSoup(html, "html.parser") resor = his_soup.find_all('div', id = "list") print(resor) drive.quit() get_data() 23040:25080:0916/112333.676:ERROR:gpu\command_buffer\service\gles2_cmd_decoder_passthrough.cc:1100] [GroupMarkerNotSet(crbug.com/242999)!:A0802B00545B0000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader (about:flags#enable-unsafe-swiftshader) flag to opt in to lower security guarantees for trusted content.
  3. ValueError: 'c' argument has 13 elements, which is inconsistent with 'x' and 'y' with size 15. x = [2,2,8,1,15,8,12,9,7,3,11,4,7,14,12] y = [100,105,84,105,90,99,90,95,94,100,79,112,91,80,85] colors = [0, 10, 20, 30, 40, 45, 50, 55, 60, 70, 80, 90, 100] plt.scatter(x, y, c=colors, cmap='Purples') plt.colorbar() plt.show()
  4. السلام عليكم ورحمة الله وبركاته ماهي طريقة تحديد مسار الطلاب وإرسل الطلاب فاذا كانت ؤرايد استدعاء بيانات او ارسلها الى قاعدة بيانات عبر GET و POST كيف احديد مساراتها
  5. كيف اعرف الحزم العامة من الحزم الأساسية و هل الحزم التي فيه g- هي حزم عامة
  6. * من لديه حل مختلف فل يشركنا القواعد: 1) عمل Destructuring على اي object فيArrayبحساب قيمات chosen 2)تغير قيمات skils بحساب قيمات avliable let chosen= 1; const user= [ //chosen 1 {tilte:"Badi" , age:22, avlible:true,skils:[ "HTML","CSS" ]}, //chosen 2 {tilte:"Ahmed", age:54, avlible:fales ,skils["Pyton","Django"]}, //chosen 3 {tilte:"Sayed", age:23, avlible:true ,skils:["PHP" ,"Laravel"]}, ] هذا حلي ارجو تقيمه سرعة الخورزمية(time complexity): ( O(1) Java-liks - Copy.js وشكراً🥰
  7. /* // المتطلبات --chosenب user ارتباط كل صف من --avlible بحساب حالة skils تغير قيماة بحسب */ let chosen= 1; const user= [ {tilte:"Badi" , age:22, avlible:false,skils:[ "HTML","CSS" ]}, {tilte:"Ahmed", age:54, avlible:true ,skils:["Pyton","Django"]}, {tilte:"Sayed", age:23, avlible:true ,skils:["PHP" ,"Laravel"]}, ] // سناري الحل if(chosen==1){ if(user.avlible==false){ const[{tilte:B}, {age:tow},{skils:[d,]}]=user } else if(user.avlible==true){ const[{tilte}, {age},{avlible},{skils:[,d]}]=user } // اختبار السناري console.log(`I'm name is ${B}`) console.log(`I'm name is ${tow}`) console.log(`I'm name is ${d}`) } ['ملاحظات'] * السلام عليكم ورحمة الله وبركاتة *عدم حل المسألة الرجاء ارشادي إلى طريقة الحل و ماينقصني لحل المسألة مع الماصدر *وشرح إخطاء وشكراً
×
×
  • أضف...