Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Download HackerRank Submissions - Python

from selp import *

a='''https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-test1-vowel/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-string-reverse/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-test1-gcd/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-test1-pattern/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-loop-pattern2/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-loop-n1occurn2/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-loop-gcd1/
https://www.hackerrank.com/contests/kongu-codefit1/challenges/c-loop-prime-number/
'''
from time import sleep
from pymsgbox import alert
ext={
'C':'c',
'Java':'java',
}
for k,a in enumerate(a.splitlines()):
b.get(a+'submissions')
sleep(1)
bes("$('[data-analytics=SubmissionsListViewResults]').click()")
sleep(3)
print(k)
fn=(a[62:-1])
a=bfc("[class='msT msB small']").text.split(': ')[1].split()[0]
bes("$('.CodeMirror-linenumber').remove()")
c=bfc('.CodeMirror-lines').text
print(c,file=open(f'ek/{k+1}_{fn}.{ext.get(a,a)}','w'))
alert('done')


This post first appeared on SMARTMANOJ, please read the originial post: here

Share the post

Download HackerRank Submissions - Python

×

Subscribe to Smartmanoj

Get updates delivered right to your inbox!

Thank you for your subscription

×