Comments (9)
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.
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.
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.
@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.
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.
@notwatermango In line 14 what should i do ?? You didn't mention it!
from harwest-tool.
@yousuf7902 google python requests set cookie.
from harwest-tool.
Glad to help 😉. Thanks for the reply and good luck tweaking!
from harwest-tool.
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)
- The timestamp on Readme.md is incorrect HOT 1
- Workflow will stop if 1 submission page only has gym submissions HOT 5
- [Feature Request] Crawl submissions in gym & virtual contest HOT 1
- Support for Atcoder OJ HOT 1
- Issue in GitHub Login HOT 1
- Valueerror on running "harwest atcoder --full-scan" HOT 4
- atcoder harwest for java submissions does not work HOT 1
- feat: Automate using GitHub Actions HOT 3
- Changes in Gihub authentication from git might cause some problems HOT 3
- Newer submission gets crawled first
- Feature to push code automatically to any branch mentioned during init process
- Resetting the entire things.
- I have updated git version but now it's showing this error when I push new code
- 'harwest' is not recognized as an internal or external command, operable program or batch file.
- c++20 file extension HOT 1
- Cannot push Solution
- Hell of the error...
- On `harwest codeforces` pull the (latest) unaccepted submission too
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harwest-tool.