2024-01-31 00:48:20 +00:00
import requests
server_url = input ( " Enter your Freedium instance server URL: " )
# List of some problematic Medium posts
url_for_test = {
" https://medium.com/@godfreythegreat/stop-wasting-your-life-27832c8f6644 " ,
" https://medium.com/@iamalexmathers/21-sentences-that-will-make-you-more-attractive-than-most-b4ee755ee6c5?source=explore---------0-83--------------------9b9b2ec7_ee6e_4cfb_bb69_db1451bfb3db-------15 " ,
" https://levelup.gitconnected.com/some-linux-commands-that-can-boost-your-work-efficiency-dramatically-9dc802a10618 " ,
" https://leshchuk.medium.com/http-cache-on-rails-nginx-stack-950fee2f8eef " ,
" https://medium.com/swlh/35-actionable-tips-to-grow-your-medium-blog-4e4017b89905 " ,
" https://valeman.medium.com/benchmarking-neural-prophet-part-i-neural-prophet-vs-prophet-252990763468 " ,
" https://valeman.medium.com/python-vs-r-for-time-series-forecasting-395390432598 " ,
" https://medium.com/@aleb/how-to-generate-random-user-agents-with-an-api-22aad3d232cb " ,
" https://medium.com/angular-in-depth/the-best-way-to-unsubscribe-rxjs-observable-in-the-angular-applications-d8f9aa42f6a0 " ,
" 515dd5a43948 " ,
" https://anudeep-vysyaraju.medium.com/how-any-gitamite-can-get-free-linkedin-premium-membership-d4222bd1a0b3 " # <--- Check for non properly aligned emojies
}
2024-02-02 00:01:55 +00:00
blacklist_url = { " 51e23c5a2aac " }
2024-01-31 00:48:20 +00:00
def main ( ) :
for url in url_for_test :
print ( f " Processing: { url } " )
request = requests . get ( server_url + url )
if request . status_code != 200 :
raise ValueError ( f " Can ' t process URL: { url } " )
if __name__ == ' __main__ ' :
main ( )