Code Monkey home page Code Monkey logo

Comments (9)

notwatermango avatar notwatermango commented on May 28, 2024 1

Seems that recently Codeforces just added RCPC again... I will close this issue as implementing a permanent fix would be troublesome. Let's hope they remove it in the near future and just bear with manual fix at the time.

from harwest-tool.

notwatermango avatar notwatermango commented on May 28, 2024 1

Sure, I also got an email from someone.

You can bypass CF's redirect by setting RCPC cookie when getting request.
RCPC cookie can be found in logged in CF.

Fix it here:
in harwest/lib/codeforces/client.py

line 14

Sorry for not giving direct solution, I currently do not have the access to my personal computer.

from harwest-tool.

notwatermango avatar notwatermango commented on May 28, 2024

Leads found:
in lib/codeforces/client.py

beautifulsoup find() returns None
submission_code = sub_soup.find('pre', attrs={'id': 'program-source-text'})

from harwest-tool.

nskybytskyi avatar nskybytskyi commented on May 28, 2024

@notwatermango could you please elaborate on the manual fix that you found? A friend of mine recently tried Harwest and run into the same issue.

from harwest-tool.

nskybytskyi avatar nskybytskyi commented on May 28, 2024

Thank you @notwatermango 😋

For anyone interested, this cf blog describes another issue that resulted from this RCPC cookie, alongside the short guide on how to get yours.

from harwest-tool.

yousuf7902 avatar yousuf7902 commented on May 28, 2024

@notwatermango In line 14 what should i do ?? You didn't mention it!

from harwest-tool.

nskybytskyi avatar nskybytskyi commented on May 28, 2024

@yousuf7902 google python requests set cookie.

from harwest-tool.

notwatermango avatar notwatermango commented on May 28, 2024

Glad to help 😉. Thanks for the reply and good luck tweaking!

from harwest-tool.

yousuf7902 avatar yousuf7902 commented on May 28, 2024

Glad to help 😉. Thanks for the reply and good luck tweaking!

@notwatermango @nskybytskyi Thank you so much both of you for helping me . Successfully I done it!😚

from harwest-tool.

Related Issues (19)

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.