GithubHelp home page GithubHelp logo

harryhare / 1point3acres Goto Github PK

View Code? Open in Web Editor NEW
95.0 95.0 62.0 1.22 MB

一亩三分地论坛 自动签到、答题

License: GNU General Public License v3.0

Python 99.46% Shell 0.32% Batchfile 0.22%
1point3acres

1point3acres's Introduction



  • 👋 Hi, I’m @harryhare
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning how to ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 Reach me: [email protected]

1point3acres's People

Contributors

aoteman5255661 avatar harryhare avatar lixin-wei avatar magicgh avatar nihileon avatar typo90 avatar xj-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

1point3acres's Issues

formhash not found 未知错误

do daily checkin...之后报错

formhash not found 未知错误,查看tmp.html,了解详情
image

有人知道怎么回事吗?手机试过能正常登录签到和答题

部分账号被封,出现503错误

do daily checkin...
get checkin info error: status code is 503

并且今天凌晨突然封了几个号,直接【禁止访问】用户组。之前还会有个账号异常的中间阶段

答案错了。大米--

答题奖励:大米 -1
时间: 2021-10-12 01:31

do daily question...
get question...
form hash: 27e76d25
question: 在论坛发slack群、qq群、微信群等任何站外讨论方式,会如何?
answers: {'4': '以上都正确', '3': '举报跨区发的群,可能得到加分奖励', '2': '如果发在求职、面经、申请类板块里,都会被删帖扣分', '1': '如果发在本地版聚、租房找室友、飞友学友工友版块,可以找到小伙伴'}
find answer: 如果发在本地版聚、租房找室友、飞友学友工友版块,可以找到小伙伴 option value: 1
solved: XXXX
答案错了,请报 issue: https://github.com/harryhare/1point3acres/issues/new

Running script failed

Hi, I followed the setting procedure, but when manually testing the action, it failed on the "run the script" step, the error message is as follows:

1s
Run cd src && python3 service.py ""
  cd src && python3 service.py ""
  shell: /usr/bin/bash -e {0}
Traceback (most recent call last):
  File "service.py", line 91, in <module>
    main()
  File "service.py", line 83, in main
    users = json.loads(sys.argv[1].replace("'", '"'))
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error: Process completed with exit code 1.

新问题

do daily question...
get question...
form hash: 490d6eaa
question: 遇到特别奇葩的帖子,以下哪些做法是错误的?
answers: {'2': '举报回帖为“引战钓鱼”', '1': '回帖:肯定是气氛组在冲业绩', '4': '世界很大,不自以为是,之前没见过的事情,也有可能是真的呢!', '3': '世界很大,别做井底之蛙。看不管的关掉即可。'}
question not found

无法自动签到

你好,经过设置已经可以自动答题, 但是无法自动签到,请求作者帮助

400/out of range错误求救

Sat 19 Feb 2022 11:15:04 PM CST
for user: w...3
do login...
solved: 03AGdBq24ZXeGqEOsCGfPppBabPVGW6YEfLJFm1xNCCSELpHopmmZgh_q0wrfU95BFsP3LyXf2QJCL0xPcDcpGGeQckozUoc_1tFgSIbnkrRsWpjkfpoyI-IIjQK-KPdDq2E5COYQx-A0Sue4-sRPyE9qx2HWaIjVe36Wf6-qMdL_mrC5PVtmbcfK-VXrvgJIC4oe4nPWbEm8hApqF7RUrmsgrzASxY57T9m9VbaADD13SmEiOpRiDvM8g375ia2458Z-X8wgj-VUNrtdJAD_eIlTMuxM5lD-GUZmBr6U1QgbGVJlmBmuFxzpN5XEZ22LLn4QT3KiRSbj_Amn2mOOLQP2s1iwyx-5YzECdBcH99WaPPV_p423Otb3T76NnUVUnqKwn1_ORUyhACX9McKRonYrAQ7XpK8mIeP5iHCzFDOwH2cj-aVrVZbatiu7Njj86cc6f85xB_WnDXgtVshhrWO-6hDHcErydgiGF9qxO3AFyNcLofGPZP3_N2B0iq2XLWrEe5CQeH-8to8UeS2hv1WeV-YjUNhdxdu9O755vlcpBv-uXPM15iVCtjDCWLolL0783sMLCJHbn
ImJmODNjY2JkMDMwYTFkMTc4MGJmNTkxNWFkNTExZGMyNzIxOWEzNjci.YhEJeQ.VQLIilRamzeFu3IZaKuvWaEj8Ag
03AGdBq24ZXeGqEOsCGfPppBabPVGW6YEfLJFm1xNCCSELpHopmmZgh_q0wrfU95BFsP3LyXf2QJCL0xPcDcpGGeQckozUoc_1tFgSIbnkrRsWpjkfpoyI-IIjQK-KPdDq2E5COYQx-A0Sue4-sRPyE9qx2HWaIjVe36Wf6-qMdL_mrC5PVtmbcfK-VXrvgJIC4oe4nPWbEm8hApqF7RUrmsgrzASxY57T9m9VbaADD13SmEiOpRiDvM8g375ia2458Z-X8wgj-VUNrtdJAD_eIlTMuxM5lD-GUZmBr6U1QgbGVJlmBmuFxzpN5XEZ22LLn4QT3KiRSbj_Amn2mOOLQP2s1iwyx-5YzECdBcH99WaPPV_p423Otb3T76NnUVUnqKwn1_ORUyhACX9McKRonYrAQ7XpK8mIeP5iHCzFDOwH2cj-aVrVZbatiu7Njj86cc6f85xB_WnDXgtVshhrWO-6hDHcErydgiGF9qxO3AFyNcLofGPZP3_N2B0iq2XLWrEe5CQeH-8to8UeS2hv1WeV-YjUNhdxdu9O755vlcpBv-uXPM15iVCtjDCWLolL0783sMLCJHbn
try login...
400
login error
Sat 19 Feb 2022 11:16:25 PM CST
for user: w...3
do login...
list index out of range

今天突然不行了,重试了四五遍都是400或者list index out of range

Looks like there are many new questions

Perhaps we can make it interactive here, so that users can choose an answer in the console.

question: 为什么有时候一亩三分地的数据跟我感觉的平均情况相差很大?
answers: {'4': '这些都包括', '2': '越极端的数据越引人注意', '3': '发帖人自我选择来分享自己的数据,并没有自称自己代表了“平均”', '1': '越极端的数据越容易被公布'}
question not found

问题没收录 question not found

do daily question...
get question...
form hash: 10bb9afa
question: 下面哪些言论,在一亩三分地里算违规?
answers: {'2': 'A国的同事都如何如何', '3': '某地区的同学都如何如何', '4': '这些以偏概全的说法都不推荐', '1': '"女生都xyz”, “男生都xyz”'}
question not found

login_v2 返回 404

in "src/raw_requests.py"
login_v2 里面的 request 返回 400

代码位置:

    body = {
        "redirect_url": "https://www.1point3acres.com/bbs/",
        "csrf_token": csrf_token,
        "username": username,
        "password": password_hashed,
        "question_id": 0,
        "answer": "",
        "g-recaptcha-response": g_token,
        "submit": "登录"
        # "submit": "%E7%99%BB%E5%BD%95"
    }
    response = session.post(
        login_url_v2, headers=header, data=urllib.parse.urlencode(body)
    )

response.text:

'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>400 Bad Request<[/title]()>\n<h1>Bad Request<[/h1]()>\n<p>The referrer does not match the host.<[/p]()>\n'

2captcha超时

调用以下代码的时候会卡住,一直超时:
raw_requests.py", line 290,
result = solver.turnstile(sitekey=cf_capcha_site_key, url=checkin_page, useragent=user_agent)

2captcha网站显示ERROR_CAPTCHA_UNSOLVABLE
image

最近才出现这种情况,以前没有。请问怎么解决呢?谢谢

完整报错

Traceback (most recent call last):
  File "D:/PycharmProjects/1point3acres/src/service.py", line 111, in <module>
    main()
  File "D:/PycharmProjects/1point3acres/src/service.py", line 97, in main
    do_all_cookie(solver, user["cookie"])
  File "D:/PycharmProjects/1point3acres/src/service.py", line 70, in do_all_cookie
    do_daily_checkin2_(solver)
  File "D:\PycharmProjects\1point3acres\src\raw_requests.py", line 290, in do_daily_checkin2_
    result = solver.turnstile(sitekey=cf_capcha_site_key, url=checkin_page, useragent=user_agent)
  File "xxx\AppData\Local\Programs\Python\Python37\lib\site-packages\twocaptcha\solver.py", line 446, in turnstile
    **kwargs)
  File "xxx\AppData\Local\Programs\Python\Python37\lib\site-packages\twocaptcha\solver.py", line 500, in solve
    code = self.wait_result(id_, timeout, sleep)
  File "xxx\AppData\Local\Programs\Python\Python37\lib\site-packages\twocaptcha\solver.py", line 518, in wait_result
    raise TimeoutException(f'timeout {timeout} exceeded')
twocaptcha.solver.TimeoutException: timeout 120.0 exceeded

强制微信扫码登录

近期几个号遇到了“为了账户安全,请微信登录”的情况,并且在浏览器扫码登录后,一旦退出,还要微信登录。这种情况下,能否增加模拟浏览器扫码-> 记录cookies,来避过呢

今天登陆报错,错误如下

Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3.8/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.8/http/client.py", line 1386, in getresponse
response.begin()
File "/usr/lib/python3.8/http/client.py", line 312, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.8/http/client.py", line 281, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

用cookie登陆,提示错误

do daily checkin...
sec hash not found 未知错误,查看tmp.html,了解详情
check in 未知错误,查看tmp.html,了解详情
do daily question...
get question...
Traceback (most recent call last):
File "service.py", line 153, in
main()
File "service.py", line 139, in main
do_all_cookie(solver, user["cookie"])
File "service.py", line 112, in do_all_cookie
daily_question(solver)
File "service.py", line 99, in daily_question
answer, form_hash, sec_hash, = get_daily_task_answer()
File "/volume1/homes/Luyao/src/1point3acres/src/raw_requests.py", line 342, in get_daily_task_answer
form_hash_node = nodes[1].cssselect('form input[name="formhash"]')[0]
IndexError: list index out of range

tmp.html也只是正常的签到页面,没有error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.