# unable to download the data

**URL:** https://discourse.obspy.org/t/unable-to-download-the-data/880
**Category:** Users Mailing List Archive
**Tags:** archive
**Created:** [April 4, 2020, 11:32am UTC](https://discourse.obspy.org/t/unable-to-download-the-data/880 "2020-04-04T11:32:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![P\_SION\_KUMARI](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@P\_SION\_KUMARI](https://discourse.obspy.org/u/P_SION_KUMARI)
#### Post date: [April 4, 2020, 11:32am UTC](https://discourse.obspy.org/t/unable-to-download-the-data/880/1 "2020-04-04T11:32:36Z")

</div>

Dear,  
I am a beginner to python and obspy as well. I wish to download continous noise data through IRIS using obspy. After following the documentation, I gave the restrictions (network, station, channels, location) but stiil I am getting an error message saying “restrictions” is not defined. It would be highly appreciated if you help me regarding this issue.  
Below I am mentioning how I went through..  
[

```python
import obspy

```

```python
from obspy.clients.fdsn.mass_downloader import Restrictions, MassDownloader
restrictions = Restrictions(
starttime=obspy.UTCDateTime(2012, 1, 1),

```
