Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
ขอ code python ที่ช่วยดึงรูปจาก ig
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
ขอ code python ที่ช่วยดึงรูปจาก ig
- Assistant
ด้วยการใช้ library instascrape ในภาษา python คุณสามารถที่จะดึง รูป ข้อมูล หรือโพสจาก instagram ได้ ก่อนอื่นให้ทำการติดตั้ง library ด้วยคำสั่ง
pip3 install insta-scrapeและนี่ตัวอย่างโค้ด python ที่สามารถใช้งานเพื่อดึงรูปจากโพสล่าสุด ของโปรไฟล์ใน instagram ได้
from instascrape import Profile profile= Profile('google') # ใช้โปรไฟล์ ID ของคุณ profile.scrape() # ทำการดึงข้อมูลของโปรไฟล์ recents = profile.get_recent_posts() profile_photos = [post for post in recents if not post.is_video] # ตรวจสอบว่าโพสที่ดึงมานั้น มีโฟสที่เป็นวีดีโอติดมาหรือเปล่า for post in profile_photos : # ทำการ loop รายการ รูปภาพทั้งหมด fname = post.upload_date.strftime("%Y-%m-%d %Hh%Mm") post.download(f"{fname}.png") # ทำการดาวน์โหลดรูปภาพโดยอิงจากเวลา - User
ขอบคุณมาก เดี๋ยวลองทำตามดู
- Assistant
ด้วยความยินดี
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →