۱۸ فروردین
Rubier
سورس لایکر با لینک پست روبینو bulb
در متغیر path ، راهه فایل اوثای api 5 به صورت لیست شده رو در سیستم خودتون بهش میدید 👁🗨
توی متغیر link ، بخش پایانی ( endpoint ) رو به متغیر میدید و سورس رو ران میکنید white_check_mark
from rubier import rubier
import ast
path = ""
# Base link: https://rubika.ir/post/YlmFXnhSSN
# What we need: YlmFXnhSSN or post/YlmFXnhSSN
link = ""
# ------------------------
auths = ast.literal_eval(open(path, "r").read())
num = 0
for Auth in auths:
try:
app = rubier.Rubier(auths)
data = app.getPostByLink(link=link)['data']['post']
status = app.likePost(data['id'], data['profile_id'])
if status['status_det'] == "OK":
num += 1
print(f"Liked Post: {num}")
else:print("Post cannot like")
except Exception as E:
print(E)
pass
#Rubier
در متغیر path ، راهه فایل اوثای api 5 به صورت لیست شده رو در سیستم خودتون بهش میدید 👁🗨
توی متغیر link ، بخش پایانی ( endpoint ) رو به متغیر میدید و سورس رو ران میکنید white_check_mark
from rubier import rubier
import ast
path = ""
# Base link: https://rubika.ir/post/YlmFXnhSSN
# What we need: YlmFXnhSSN or post/YlmFXnhSSN
link = ""
# ------------------------
auths = ast.literal_eval(open(path, "r").read())
num = 0
for Auth in auths:
try:
app = rubier.Rubier(auths)
data = app.getPostByLink(link=link)['data']['post']
status = app.likePost(data['id'], data['profile_id'])
if status['status_det'] == "OK":
num += 1
print(f"Liked Post: {num}")
else:print("Post cannot like")
except Exception as E:
print(E)
pass
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
۱۸ فروردین
Rubier
نسخه 3.9.5 در پایپی قرار گرفت !
جزعیات آپدیت: اضافه شدن متود getUserInfoByPostLink ، جهت گرفتن اطلاعات کاربر از طریق لینک پست
#Rubier
جزعیات آپدیت: اضافه شدن متود getUserInfoByPostLink ، جهت گرفتن اطلاعات کاربر از طریق لینک پست
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
Rubier
نحوه ایمپورت کتابخانه bulb :
from rubier import rubier
app = rubier.Rubier("AUTH")
کلس های Rubino و rubino همون Rubier هستن ( ارث بری ) new_moon_with_face
همچنین کلس ایسنیک هم که با نام AsyncRubier هست میتونید استفاده کنید relaxed️
کلس های AsyncRunner و ThreadRunner یا ThreadRubier مخصوص ران کردن فانکشن های ایسنیک و نرمال هستن ok_hand
#Rubier
from rubier import rubier
app = rubier.Rubier("AUTH")
کلس های Rubino و rubino همون Rubier هستن ( ارث بری ) new_moon_with_face
همچنین کلس ایسنیک هم که با نام AsyncRubier هست میتونید استفاده کنید relaxed️
کلس های AsyncRunner و ThreadRunner یا ThreadRubier مخصوص ران کردن فانکشن های ایسنیک و نرمال هستن ok_hand
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
Rubier
pip install --trusted-host https://pypi.tuna.tsinghua.edu.cn -i https://pypi.tuna.tsinghua.edu.cn/simple/ rubier==3.9.5
دانلود کتابخانه rubier با میرور، نسخه 3.9.5 🧿
#Rubier
دانلود کتابخانه rubier با میرور، نسخه 3.9.5 🧿
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
۱۸ فروردین
Rubier
صفحه ی روبیر در گیت هاب :
https://github.com/Rubier-Project
سورس کد:
https://github.com/Rubier-Project/Rubier
#Rubier
https://github.com/Rubier-Project
سورس کد:
https://github.com/Rubier-Project/Rubier
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
Rubier
نگاهی به صفحه گیت هاب new_moon_with_facecat2black_large_square️
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
Rubier
سورس اد زدن ویو به پست
from rubier import rubier
import ast
path = "G:\\__lib\\a.txt"
post_link = "IdpLfRZjbw"
# ---------------------
num = 0
for auth in ast.literal_eval(open(path, "r").read()):
try:
app = rubier.Rubier(auth)
data = app.getPostByLink(post_link)
post_id, profile_id = data['data']['post']['id'] if "data" in data.keys() else None, data['data']['post']['profile_id'] if "data" in data.keys() else None
print(app.addPostViewCount(post_id, profile_id))
num += 1
print(f"Added View: {num}")
except Exception as ERROR:
print(f"Cannot add View: {ERROR}")
pass
#Rubier
from rubier import rubier
import ast
path = "G:\\__lib\\a.txt"
post_link = "IdpLfRZjbw"
# ---------------------
num = 0
for auth in ast.literal_eval(open(path, "r").read()):
try:
app = rubier.Rubier(auth)
data = app.getPostByLink(post_link)
post_id, profile_id = data['data']['post']['id'] if "data" in data.keys() else None, data['data']['post']['profile_id'] if "data" in data.keys() else None
print(app.addPostViewCount(post_id, profile_id))
num += 1
print(f"Added View: {num}")
except Exception as ERROR:
print(f"Cannot add View: {ERROR}")
pass
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA۱۸ فروردین
Rubier
سورس کامنت گذار
from rubier import rubier
import ast
path = "G:\\__lib\\a.txt"
post_link = "IdpLfRZjbw"
text = "وای چه جالب !!!"
# -----------------------
num = 0
for auth in ast.literal_eval(open(path, "r").read()):
try:
app = rubier.Rubier(auth)
data = app.getPostByLink(post_link)
post_id, profile_id = data['data']['post']['id'] if "data" in data.keys() else None, data['data']['post']['profile_id'] if "data" in data.keys() else None
print(app.sendComment(text, post_id, profile_id))
num += 1
print(f"Commented: {num}")
except Exception as ERROR:
print(f"Cannot leave a comment: {ERROR}")
pass
#Rubier
from rubier import rubier
import ast
path = "G:\\__lib\\a.txt"
post_link = "IdpLfRZjbw"
text = "وای چه جالب !!!"
# -----------------------
num = 0
for auth in ast.literal_eval(open(path, "r").read()):
try:
app = rubier.Rubier(auth)
data = app.getPostByLink(post_link)
post_id, profile_id = data['data']['post']['id'] if "data" in data.keys() else None, data['data']['post']['profile_id'] if "data" in data.keys() else None
print(app.sendComment(text, post_id, profile_id))
num += 1
print(f"Commented: {num}")
except Exception as ERROR:
print(f"Cannot leave a comment: {ERROR}")
pass
#Rubier
Please open Rubika to view this post
VIEW IN RUBIKA