Skip to content

Commit 4bea8a5

Browse files
committed
Change project name to pystock-crawler.
1 parent 126b35c commit 4bea8a5

18 files changed

+25
-25
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*.log
33
*.csv
44
.coverage
5-
stockcrawler.egg-info/
6-
stockcrawler/tests/sample_data/
5+
pystock_crawler.egg-info/
6+
pystock_crawler/tests/sample_data/
77
.scrapy/
88
.~*
File renamed without changes.
File renamed without changes.

stockcrawler/loaders.py pystock_crawler/loaders.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from scrapy.utils.misc import arg_to_iter
55
from scrapy.utils.python import flatten
66

7-
from stockcrawler.items import ReportItem
7+
from pystock_crawler.items import ReportItem
88

99

1010
DATE_FORMAT = '%Y-%m-%d'

stockcrawler/settings.py pystock_crawler/settings.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Scrapy settings for stockcrawler project
1+
# Scrapy settings for pystock-crawler project
22
#
33
# For simplicity, this file contains only the most important settings by
44
# default. All the other settings are documented here:
55
#
66
# http://doc.scrapy.org/en/latest/topics/settings.html
77
#
88

9-
BOT_NAME = 'stockcrawler'
9+
BOT_NAME = 'pystock-crawler'
1010

11-
SPIDER_MODULES = ['stockcrawler.spiders']
12-
NEWSPIDER_MODULE = 'stockcrawler.spiders'
11+
SPIDER_MODULES = ['pystock_crawler.spiders']
12+
NEWSPIDER_MODULE = 'pystock_crawler.spiders'
1313

1414
# Crawl responsibly by identifying yourself (and your website) on the user-agent
1515
#USER_AGENT = 'stockcrawler (+http://www.yourdomain.com)'
File renamed without changes.

stockcrawler/spiders/edgar.py pystock_crawler/spiders/edgar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
44
from scrapy.contrib.spiders import CrawlSpider, Rule
55

6-
from stockcrawler import utils
7-
from stockcrawler.loaders import ReportItemLoader
6+
from pystock_crawler import utils
7+
from pystock_crawler.loaders import ReportItemLoader
88

99

1010
class URLGenerator(object):

stockcrawler/spiders/yahoo.py pystock_crawler/spiders/yahoo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from datetime import datetime
66
from scrapy.spider import Spider
77

8-
from stockcrawler import utils
9-
from stockcrawler.items import PriceItem
8+
from pystock_crawler import utils
9+
from pystock_crawler.items import PriceItem
1010

1111

1212
class URLGenerator(object):
File renamed without changes.
File renamed without changes.

stockcrawler/tests/test_loaders.py pystock_crawler/tests/test_loaders.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from scrapy.http.response.xml import XmlResponse
66

7-
from stockcrawler.loaders import ReportItemLoader
8-
from stockcrawler.tests.base import SAMPLE_DATA_DIR, TestCaseBase
7+
from pystock_crawler.loaders import ReportItemLoader
8+
from pystock_crawler.tests.base import SAMPLE_DATA_DIR, TestCaseBase
99

1010

1111
def create_response(file_path):

stockcrawler/tests/test_spiders_edgar.py pystock_crawler/tests/test_spiders_edgar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
from scrapy.http import HtmlResponse, XmlResponse
55

6-
from stockcrawler.spiders.edgar import EdgarSpider, URLGenerator
7-
from stockcrawler.tests.base import TestCaseBase
6+
from pystock_crawler.spiders.edgar import EdgarSpider, URLGenerator
7+
from pystock_crawler.tests.base import TestCaseBase
88

99

1010
def make_url(symbol, start_date='', end_date=''):

stockcrawler/tests/test_spiders_yahoo.py pystock_crawler/tests/test_spiders_yahoo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from stockcrawler.spiders.yahoo import YahooSpider
2-
from stockcrawler.tests.base import TestCaseBase
1+
from pystock_crawler.spiders.yahoo import YahooSpider
2+
from pystock_crawler.tests.base import TestCaseBase
33

44

55
class YahooSpiderTest(TestCaseBase):

stockcrawler/tests/test_utils.py pystock_crawler/tests/test_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import cStringIO
22
import os
33

4-
from stockcrawler import utils
5-
from stockcrawler.tests.base import SAMPLE_DATA_DIR, TestCaseBase
4+
from pystock_crawler import utils
5+
from pystock_crawler.tests.base import SAMPLE_DATA_DIR, TestCaseBase
66

77

88
class UtilsTest(TestCaseBase):
File renamed without changes.

pytest.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[pytest]
2-
addopts = --cov-report term-missing --cov stockcrawler stockcrawler/tests/
2+
addopts = --cov-report term-missing --cov pystock_crawler pystock_crawler/tests/

scrapy.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# http://doc.scrapy.org/en/latest/topics/scrapyd.html
55

66
[settings]
7-
default = stockcrawler.settings
7+
default = pystock_crawler.settings
88

99
[deploy]
1010
#url = http://localhost:6800/
11-
project = stockcrawler
11+
project = pystock_crawler

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66

77
setup(
8-
name='stockcrawler',
8+
name='pystock-crawler',
99
version='0.0.1',
10-
url = 'http://github.com/eliangcs/stockcrawler/',
10+
url='https://github.com/eliangcs/pystock-crawler',
1111
description='Crawl stock historical data.',
1212
long_description=open('README.rst').read(),
1313
author='Chang-Hung Liang',
1414
author_email='[email protected]',
1515
license='MIT',
16-
packages=['stockcrawler'],
16+
packages=['pystock_crawler'],
1717
)

0 commit comments

Comments
 (0)