# Scan-For-Webcams | Scan For Webcams In The Internet

**URL:** <https://onehack.st/t/scan-for-webcams-scan-for-webcams-in-the-internet/102590>\
**Category:** Tools & Scripts\
**Tags:** programming, documents\
**Created:** [August 23, 2020, 12:43pm UTC](https://onehack.st/t/scan-for-webcams-scan-for-webcams-in-the-internet/102590 "2020-08-23T12:43:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prometheus](https://onehack.st/user_avatar/onehack.st/prometheus/32/34950_2.png) [@Prometheus](https://onehack.st/u/Prometheus)\
**Post date:** [August 23, 2020, 12:43pm UTC](https://onehack.st/t/scan-for-webcams-scan-for-webcams-in-the-internet/102590/1 "2020-08-23T12:43:33Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/2/4/249cc1178b7742f14fdfe8f73bad01df11a6a739.png)

Automatically scan for publically accessible webcams around the internet

**Usage**

- `python MJPG.py` : for public [MJPG streamers](https://github.com/jacksonliam/mjpg-streamer) around the internet
- `python webcamXP.py` : for public [webcamXP streamers](http://www.webcamxp.com/) around the internet

The program will output a list of links with the format of `ip_address:port`  
If your terminal supports links, click the link and open it in your browser, otherwise, copy the link and open it in your browser.

**Installation**

1. clone&cd into the repo:  
`git clone https://github.com/JettChenT/scan-for-webcams;cd scan-for-webcams`

2. install requirements:  
`pip install -r requirements.txt`

3. set up shodan:

4. go to [shodan.io](https://shodan.io/), register/log in and grab your API key

5. Set environ `SHODAN_API_KEY` as your `API key` :  
`export "SHODAN_API_KEY"="<your api key>"`

6. set up clarifai:

7. go to [clarifai.com](https://clarifai.com/), register/log in, create an application and grab your API key

8. set environ `CLARIFAI_API_KEY` as your `API key`  
`export "CLARIFAI_API_KEY"="<your api key>"`

And then you can run the program!

**Demo**

[![](https://1.bp.blogspot.com/-k5ipxM568B8/Xzn52lae1SI/AAAAAAAATgQ/zKvhuaZOffc62UZfhCKy_rFMffzM-j_XACNcBGAsYHQ/s640/349819.png)](https://asciinema.org/a/349819)

## GitHub:

> **[GitHub - JettChenT/scan-for-webcams: scan for webcams on the internet](https://github.com/JettChenT/scan-for-webcams)**
>
> scan for webcams on the internet
