fmscraper 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ class MatchLinks:
48
48
  )
49
49
  consent_button.click()
50
50
 
51
-
51
+
52
52
  def get_matches_ids(self,rounds):
53
53
  games_list = []
54
54
  games_ids = []
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: fmscraper
3
+ Version: 0.1.1
4
+ Summary: Scraper for FotMob matches
5
+ Author: Mieszko Pugowski
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/MieszkoPugowski/FMScraper
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: selenium
12
+ Requires-Dist: requests
13
+ Requires-Dist: beautifulsoup4
14
+ Dynamic: license-file
15
+
16
+ # FMScraper
17
+
18
+ A Selenium-powered Python tool for scraping football match data from [FotMob](https://www.fotmob.com/).
19
+
20
+ Inspired by: [Webscraper-PremData](https://github.com/deanpatel2/Webscraper-PremData/tree/main) and [scraping-football-sites](https://github.com/axelbol/scraping-football-sites/tree/main)
21
+
22
+ ## Overview
23
+ FMScraper is a web scraping tool designed to extract comprehensive football match statistics and data from [FotMob](https://www.fotmob.com/), a popular platform for football statistics, live scores, and match analysis. The tool automates the data collection process, handling JavaScript-driven content and dynamic page layouts that traditional scraping methods cannot access.
24
+
25
+ ## Features
26
+
27
+ - Scrapes match info from FotMob
28
+ - Handles JavaScript-driven layouts using Selenium
29
+ - Extracts data for specific leagues, seasons, and matchweeks
30
+
31
+ ## Requirements
32
+
33
+ - Python 3.8+
34
+ - [Selenium](https://selenium.dev/)
35
+ - [beautifulsoup4 ](https://pypi.org/project/beautifulsoup4/)
36
+ - [requests](https://pypi.org/project/requests/)
37
+ - [chromedriver](https://chromedriver.chromium.org/) or another compatible WebDriver
38
+
39
+ ## Disclaimer
40
+ For educational and research purposes only. Do not use it commercially.
41
+
42
+ ## Installation
43
+
44
+ 1. Clone the repository:
45
+ ```bash
46
+ git clone https://github.com/MieszkoPugowski/FMScraper.git
47
+ cd FMScraper
48
+ ```
49
+
50
+ 2. Install using pip:
51
+ ```bash
52
+ pip install fmscraper
53
+ ```
54
+ ## Example usage
55
+ ```python
56
+ from fmscraper import MatchStats, MatchLinks
57
+ game_ids = MatchLinks(league_id=38,league="bundesliga",season='2024-2025').get_matches_ids(32)
58
+
59
+ some_game = game_ids[0]
60
+
61
+ data = MatchStats(some_game)
62
+
63
+ # List of all shots in a game
64
+ shotlist = data['content']['shotmap']['shots']
65
+ print(shotlist)
66
+ ```
67
+
68
+ ## Contributing
69
+ Contributions are welcome! Please feel free to submit a pull request or open an issue.
70
+
71
+
@@ -0,0 +1,9 @@
1
+ fmscraper/__init__.py,sha256=Gg2vY3bm8O4lwj8OJNY87T7MA6Qqx-vgtia9Wdcrbdk,120
2
+ fmscraper/match_list_scraper.py,sha256=Bd32rxDGuLl_pvAEAqSeESQO5RF8m6Mm0fUL3uPCCHk,2792
3
+ fmscraper/match_stats.py,sha256=72iBwFrtjkeWWELVATEdx21FLYGcb4QoRJC0KwAquF8,698
4
+ fmscraper/xmas_generator.py,sha256=wiwcsg7gnuIUIGd-UIOfxU7BZteS71DDORHYCdecsvU,3215
5
+ fmscraper-0.1.1.dist-info/licenses/LICENSE,sha256=aNZ9vR5w7kR5aOePzUCQmAcwhCWggeS8fTbHuTm_0OE,1094
6
+ fmscraper-0.1.1.dist-info/METADATA,sha256=v7Rq5CRHIIIo4-utEn56FtG_tUatXHk6SsHkS9WSVtM,2279
7
+ fmscraper-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ fmscraper-0.1.1.dist-info/top_level.txt,sha256=4X3tzQx7dzOqwUG1Y98F5wcnqjioMRGbHJOHMRjuTx0,10
9
+ fmscraper-0.1.1.dist-info/RECORD,,
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: fmscraper
3
- Version: 0.1.0
4
- Summary: Scraper for FotMob matches
5
- Author: Mieszko Pugowski
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/MieszkoPugowski/FMScraper
8
- Requires-Python: >=3.8
9
- Description-Content-Type: text/markdown
10
- License-File: LICENSE
11
- Requires-Dist: selenium
12
- Requires-Dist: requests
13
- Requires-Dist: beautifulsoup4
14
- Dynamic: license-file
15
-
16
- # FMScraper
17
-
18
- FMScraper is a Python-based web scraping tool designed to collect football match data from [FotMob](https://www.fotmob.com/). It automates the extraction of match information.
19
-
20
- Inspired by: [Webscraper-PremData](https://github.com/deanpatel2/Webscraper-PremData/tree/main) and [scraping-football-sites](https://github.com/axelbol/scraping-football-sites/tree/main)
21
-
22
- ## Features
23
-
24
- - Scrapes match info from FotMob
25
- - Handles JavaScript-driven layouts using Selenium
26
- - Extracts data for specific leagues, seasons, and matchweeks
27
-
28
- ## Requirements
29
-
30
- - Python 3.8+
31
- - [Selenium](https://selenium.dev/)
32
- - [chromedriver](https://chromedriver.chromium.org/) or another compatible WebDriver
33
-
34
- ## Disclaimer
35
- For educational and research purposes only. Do not use it commercially.
36
-
37
- ## Installation
38
-
39
- 1. Clone the repository:
40
- ```bash
41
- git clone https://github.com/MieszkoPugowski/FMScraper.git
42
- cd FMScraper
@@ -1,9 +0,0 @@
1
- fmscraper/__init__.py,sha256=Gg2vY3bm8O4lwj8OJNY87T7MA6Qqx-vgtia9Wdcrbdk,120
2
- fmscraper/match_list_scraper.py,sha256=eg_F3mtE1en-1s-yUowYhU_uKAPn2wKRqZN4ntVf0bU,2784
3
- fmscraper/match_stats.py,sha256=72iBwFrtjkeWWELVATEdx21FLYGcb4QoRJC0KwAquF8,698
4
- fmscraper/xmas_generator.py,sha256=wiwcsg7gnuIUIGd-UIOfxU7BZteS71DDORHYCdecsvU,3215
5
- fmscraper-0.1.0.dist-info/licenses/LICENSE,sha256=aNZ9vR5w7kR5aOePzUCQmAcwhCWggeS8fTbHuTm_0OE,1094
6
- fmscraper-0.1.0.dist-info/METADATA,sha256=fACunJgSwVlHlxl0tdsvBnWzKhtJGOcpqJR_Q1RnjuI,1344
7
- fmscraper-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- fmscraper-0.1.0.dist-info/top_level.txt,sha256=4X3tzQx7dzOqwUG1Y98F5wcnqjioMRGbHJOHMRjuTx0,10
9
- fmscraper-0.1.0.dist-info/RECORD,,