Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
[DOC] Updated readme and add License docstring for the crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
roysti10 committed Jan 5, 2021
1 parent 4ee7c39 commit ef58124
Show file tree
Hide file tree
Showing 10 changed files with 128 additions and 151 deletions.
149 changes: 0 additions & 149 deletions Dataset.md

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ In the past year or so fantasy cricket has been getting a lot of traction and wi
1. [FastAPI](https://fastapi.tiangolo.com/)
2. [sklearn](https://scikit-learn.org/stable/)
3. [pycricbuzz](https://github.com/codophobia/pycricbuzz)
4. [scrapy](https://docs.scrapy.org/en/latest/)

Install using </br>
```bash
Expand All @@ -28,9 +29,9 @@ cd Best11-Fantasycricket

3. Run the model :

`uvicorn main:app --reload`
`uvicorn app.main:app --reload`

5. Open http://127.0.0.1:8000/ and voila!!
5. Open http://localhost:8000/ and voila!!

## How do you verify your model??

Expand Down
15 changes: 15 additions & 0 deletions app/fantasy_cricket/templates/Playing_11.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<!DOCTYPE html>
<!--Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<html>
<head>
<title>Choose your playing 11</title>
Expand Down
16 changes: 16 additions & 0 deletions crawler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
"""
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import sys

sys.path.insert(1, "..")
15 changes: 15 additions & 0 deletions crawler/fantasy_leagues.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@

"""
This modules defines all the fantasy leagues that
the project supports
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""


Expand Down
16 changes: 16 additions & 0 deletions crawler/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

"""
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import scrapy


Expand Down
15 changes: 15 additions & 0 deletions crawler/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html

"""
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
from statistics import mode
Expand Down
16 changes: 16 additions & 0 deletions crawler/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
"""
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
# Scrapy settings for cricketcrawler project
#
# For simplicity, this file contains only settings considered important or
Expand Down
16 changes: 16 additions & 0 deletions crawler/spiders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
#
# Please refer to the documentation for information on how to create and manage
# your spiders.
"""
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import sys

Expand Down
16 changes: 16 additions & 0 deletions crawler/spiders/howstat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
"""
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
from dateutil.parser import parse as dateparse
from scrapy import Request, Spider
from crawler.fantasy_leagues import Dream11
Expand Down

0 comments on commit ef58124

Please sign in to comment.