Greasy Fork is available in English.

Microsoft Bing Rewards每日任务脚本

自动完成微软Rewards每日搜索任务,每次运行时获取抖音/微博/哔哩哔哩/百度/头条热门词,避免使用同样的搜索词被封号。

< Feedback on Microsoft Bing Rewards每日任务脚本

Review: Good - script works

§
Posted: 08-04-2024

如何设置脚本启动浏览器或者定时自动运行呀

huaisha2049Tác giả
§
Posted: 08-04-2024

你是希望在自动启动浏览器,然后访问必应,并且自动开始搜索么?

§
Posted: 08-04-2024

对的,之前有个Automate Your Bing Searches可以设置在固定时间或者启动时自动运行,不过现在那个插件搜索不加分了

piu
§
Posted: 08-04-2024

目前我遇到的情况是搜索最多三次加积分,然后间隔10~20分钟在次搜索才加分,手机端加的是电脑分

§
Posted: 09-04-2024

现在手机端的分只能手机登陆刷分了,模拟的没有用了,没有时间限制。
电脑端是被限制了,15分钟/3次搜索,我用手动搜索了一周左右就解除限制了

huaisha2049Tác giả
§
Posted: 09-04-2024

现在手机端的分只能手机登陆刷分了,模拟的没有用了,没有时间限制。
电脑端是被限制了,15分钟/3次搜索,我用手动搜索了一周左右就解除限制了

我倒是一直用的是手机上安装Via开跑的自动脚本,看来微软限制模拟器了。

§
Posted: 09-04-2024

作者可否加一个定时开关,像图上这样,这个是单独的一个扩展

huaisha2049Tác giả
§
Posted: 09-04-2024

作者可否加一个定时开关,像图上这样,这个是单独的一个扩展




图片都裂开了,看不着,要不说一下大概的需求。

§
Posted: 09-04-2024

功能是计划执行任务
1.在特定的时间 比如9:00
2.每天第一次启动浏览器时
还有一个是搜索间隔的 每次搜索间隔,在最大值与最小值之间随机,比如设置在300s到400s,挂机就可以完成全部搜索任务(限制之前是2-3s或者10-15s)

huaisha2049Tác giả
§
Posted: 09-04-2024

你这个需求用油猴脚本实现不了的,但是我一开始是用Python写的这样的脚本。
是一个exe的执行程序,添加到定时任务里面,每天定时运行这个程序。
然后这个程序会自动打开浏览器,访问bing.com 开始执行搜索任务。

但是我觉得这样比较麻烦,没有油猴脚本方便,所以才写了油猴脚本的。
Python脚本在这里:https://github.com/huaisha1224/Microsoft-Rewards

§
Posted: 09-04-2024

这个是不是没有更新了,我觉得python这个很适用,有一台长期开机的小服务器,可以设置一些定时任务就不用手动操作了,我去学习一下

§
Posted: 12-04-2024

python的有个小问题,用chrome的时候可以调用启动,但是edge运行之前必须要把edge的后台都杀掉才可以,要不然就会报错,
我试着写了一下python的抓取热词的,但是不管用,无法运行

§
Posted: 13-04-2024

#!/usr/bin/env python
# -*- coding:utf-8 -*-

from time import sleep
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import requests
from bs4 import BeautifulSoup
import random

def get_random_keyword_source():
keywords_source = ['douyinhot', 'zhihuhot', 'baiduhot']
random_keyword_source = random.choice(keywords_source)
return random_keyword_source

def Chrome_Rewards(url):
"""使用Chrome浏览器访问bing.com 网站
"""
# 启用Chrome浏览器参数配置
chrome_options = webdriver.EdgeOptions()
# 添加用户数据目录
chrome_options.add_argument("--user-data-dir="+r"C:\Users\VvLin-61\AppData\Local\Microsoft\Edge\User Data")

# 使用用户已有的缓存
chrome_options.add_argument("--profile-directory=Default")
# 设置为开发者模式、避免出现浏览器上提示 受到测试软件的控制
chrome_options.add_experimental_option('excludeSwitches',['enable-automation'])

# 创建webdriver对象

driver = webdriver.Edge(options=chrome_options)

driver.implicitly_wait(10)
# 设置浏览器窗口大小
driver.set_window_size(1024, 768)
driver.get(url)

# 从文件读取需要搜索的关键词
random_keyword_source = get_random_keyword_source()
fetch_url = "https://tenapi.cn/v2/" + random_keyword_source

response = requests.get(fetch_url)
if response.status_code == 200:
data = response.json()
if data.get('data'):
names = [item['name'] for item in data['data']]
for x in names:
# sleep(2)
# 定位搜索框
search_box = driver.find_element(By.NAME, "q")
# 清空搜索框内容
search_box.clear()
# 传入搜索关键词并搜索
search_box.send_keys(x)
# 等待加载完成
driver.implicitly_wait(10)
# driver.refresh()
# print(x)
sleep(4)
driver.back()
else:
# 如果请求失败,则返回默认搜索词
with open('keyword.txt', 'r', encoding='utf-8') as f:
data = f.readlines()
for x in data:
# sleep(2)
# 定位搜索框
search_box = driver.find_element(By.NAME,"q")
# 传入搜索关键词并搜索
search_box.send_keys(x)
# 等待加载完成
driver.implicitly_wait(10)
# driver.refresh()
# print(x)
sleep(4)
driver.back()
driver.quit()


if __name__== "__main__":
url = 'http://www.bing.com'
Chrome_Rewards(url)

huaisha2049Tác giả
§
Posted: 13-04-2024

#!/usr/bin/env python
# -*- coding:utf-8 -*-

from time import sleep
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import requests
from bs4 import BeautifulSoup
import random

def get_random_keyword_source():
keywords_source = ['douyinhot', 'zhihuhot', 'baiduhot']
random_keyword_source = random.choice(keywords_source)
return random_keyword_source

def Chrome_Rewards(url):
"""使用Chrome浏览器访问bing.com 网站
"""
# 启用Chrome浏览器参数配置
chrome_options = webdriver.EdgeOptions()
# 添加用户数据目录
chrome_options.add_argument("--user-data-dir="+r"C:\Users\VvLin-61\AppData\Local\Microsoft\Edge\User Data")

# 使用用户已有的缓存
chrome_options.add_argument("--profile-directory=Default")
# 设置为开发者模式、避免出现浏览器上提示 受到测试软件的控制
chrome_options.add_experimental_option('excludeSwitches',['enable-automation'])

# 创建webdriver对象

driver = webdriver.Edge(options=chrome_options)

driver.implicitly_wait(10)
# 设置浏览器窗口大小
driver.set_window_size(1024, 768)
driver.get(url)

# 从文件读取需要搜索的关键词
random_keyword_source = get_random_keyword_source()
fetch_url = "https://tenapi.cn/v2/" + random_keyword_source

response = requests.get(fetch_url)
if response.status_code == 200:
data = response.json()
if data.get('data'):
names = [item['name'] for item in data['data']]
for x in names:
# sleep(2)
# 定位搜索框
search_box = driver.find_element(By.NAME, "q")
# 清空搜索框内容
search_box.clear()
# 传入搜索关键词并搜索
search_box.send_keys(x)
# 等待加载完成
driver.implicitly_wait(10)
# driver.refresh()
# print(x)
sleep(4)
driver.back()
else:
# 如果请求失败,则返回默认搜索词
with open('keyword.txt', 'r', encoding='utf-8') as f:
data = f.readlines()
for x in data:
# sleep(2)
# 定位搜索框
search_box = driver.find_element(By.NAME,"q")
# 传入搜索关键词并搜索
search_box.send_keys(x)
# 等待加载完成
driver.implicitly_wait(10)
# driver.refresh()
# print(x)
sleep(4)
driver.back()
driver.quit()


if __name__== "__main__":
url = 'http://www.bing.com'
Chrome_Rewards(url)

兄弟你可以呀,开始改代码了。

§
Posted: 13-04-2024

Thanks for the info I will try to figure it out for more

§
Posted: 13-04-2024

自己折腾着,这个爬取热词的不知道行不行,不知道哪里出了问题,搜索的时候会一直取消,
而且webdriver对edge有个bug,目前没找到解决办法,就是在运行前必须在后台杀掉所有edge,但是chrome就没有这个影响,到时候再看吧,你可以帮忙看一下代码哪里出问题了吗,搜索词相关

Post reply

Đăng nhập để bình luận