<commit_before># Samosa-Clips-Auto-Downloader
### Python Script to Download all Audio Clips and Movie Dialogues from getsamosa.in 

Recently while scrolling through my news feed in facebook, an aricle on [Samosa App](http://getsamosa.com/) in [Chai Bisket](http://chaibisket.com/samosa-hyderabad-startup/) came to my notice. I have gone through the article and found the concept of their startup very interesting and opened their website to see how that actually works. 

I was surprised to see their huge collection of movie dialogues, ringtones and many other. 

Seeing that, I got a very bad idea of downloading all those clips to my laptop. Without any delay, I started to look at their source code and to my surprise they were using JSON requests to render those clips from the server.That made my efforts even more easier. 

Then I started writing the python script to download those clips from their site. In each request, I was able to download 15 clips. 

To avoid any unneccessary attention and blockage, I made the script to run every 10 seconds. I kept the script to run for 2 hours and I was able to download nearly 1500 clips from their site.

###Snapshots:

![Downloaded](total.png)

![Script Running](sample.png)

### Steps to avoid them:
* Using authorisation or access token for requests
* Limiting the no. of requests from each user
* Blocking unauthorised requests

#### License

MIT © [<NAME>](http://suniltatipelly.in)

<commit_msg>Add a Bitdeli badge to README<commit_after># Samosa-Clips-Auto-Downloader
### Python Script to Download all Audio Clips and Movie Dialogues from getsamosa.in 

Recently while scrolling through my news feed in facebook, an aricle on [Samosa App](http://getsamosa.com/) in [Chai Bisket](http://chaibisket.com/samosa-hyderabad-startup/) came to my notice. I have gone through the article and found the concept of their startup very interesting and opened their website to see how that actually works. 

I was surprised to see their huge collection of movie dialogues, ringtones and many other. 

Seeing that, I got a very bad idea of downloading all those clips to my laptop. Without any delay, I started to look at their source code and to my surprise they were using JSON requests to render those clips from the server.That made my efforts even more easier. 

Then I started writing the python script to download those clips from their site. In each request, I was able to download 15 clips. 

To avoid any unneccessary attention and blockage, I made the script to run every 10 seconds. I kept the script to run for 2 hours and I was able to download nearly 1500 clips from their site.

###Snapshots:

![Downloaded](total.png)

![Script Running](sample.png)

### Steps to avoid them:
* Using authorisation or access token for requests
* Limiting the no. of requests from each user
* Blocking unauthorised requests

#### License

MIT © [<NAME>](http://suniltatipelly.in)




[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/Sunil02324/samosa-clips-auto-downloader/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

{'fraction_non_alphanumeric': 0.06564835879103022, 'fraction_numerical': 0.009099772505687357, 'mean_word_length': 4.438162544169611, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2027078', 'n_tokens_mistral': 872, 'n_tokens_neox': 812, 'n_words': 439}