Mindeveloped's blog

By Mindeveloped, history, 3 hours ago, In English

I made my own script to filter problems in CF problemset. If such script with same function already exists you can ignore my post or downvote it.

This is a python 3 script that fetches all problems from CF problemset and allows custom filtering. It supports custom filter criteria in python expression format. After you input the filter function, it filters the problems and choose a random one. More details can be found in spoilers below.

Filter Expression
Code
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
75 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

It does works well but sometimes it shows me this image

else it works fine sometimes

image

  • »
    »
    74 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    can you show what is your filter expression in the first case

  • »
    »
    69 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    inspired me to add an error handling in the evaluating part, thanks