fmscraper 0.1.0__tar.gz → 0.1.1__tar.gz

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.
@@ -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,56 @@
1
+ # FMScraper
2
+
3
+ A Selenium-powered Python tool for scraping football match data from [FotMob](https://www.fotmob.com/).
4
+
5
+ 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)
6
+
7
+ ## Overview
8
+ 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.
9
+
10
+ ## Features
11
+
12
+ - Scrapes match info from FotMob
13
+ - Handles JavaScript-driven layouts using Selenium
14
+ - Extracts data for specific leagues, seasons, and matchweeks
15
+
16
+ ## Requirements
17
+
18
+ - Python 3.8+
19
+ - [Selenium](https://selenium.dev/)
20
+ - [beautifulsoup4 ](https://pypi.org/project/beautifulsoup4/)
21
+ - [requests](https://pypi.org/project/requests/)
22
+ - [chromedriver](https://chromedriver.chromium.org/) or another compatible WebDriver
23
+
24
+ ## Disclaimer
25
+ For educational and research purposes only. Do not use it commercially.
26
+
27
+ ## Installation
28
+
29
+ 1. Clone the repository:
30
+ ```bash
31
+ git clone https://github.com/MieszkoPugowski/FMScraper.git
32
+ cd FMScraper
33
+ ```
34
+
35
+ 2. Install using pip:
36
+ ```bash
37
+ pip install fmscraper
38
+ ```
39
+ ## Example usage
40
+ ```python
41
+ from fmscraper import MatchStats, MatchLinks
42
+ game_ids = MatchLinks(league_id=38,league="bundesliga",season='2024-2025').get_matches_ids(32)
43
+
44
+ some_game = game_ids[0]
45
+
46
+ data = MatchStats(some_game)
47
+
48
+ # List of all shots in a game
49
+ shotlist = data['content']['shotmap']['shots']
50
+ print(shotlist)
51
+ ```
52
+
53
+ ## Contributing
54
+ Contributions are welcome! Please feel free to submit a pull request or open an issue.
55
+
56
+
@@ -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
+
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fmscraper"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Scraper for FotMob matches"
5
5
  authors = [
6
6
  { name = "Mieszko Pugowski"}
fmscraper-0.1.0/PKG-INFO DELETED
@@ -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
fmscraper-0.1.0/README.md DELETED
@@ -1,27 +0,0 @@
1
- # FMScraper
2
-
3
- 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.
4
-
5
- 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)
6
-
7
- ## Features
8
-
9
- - Scrapes match info from FotMob
10
- - Handles JavaScript-driven layouts using Selenium
11
- - Extracts data for specific leagues, seasons, and matchweeks
12
-
13
- ## Requirements
14
-
15
- - Python 3.8+
16
- - [Selenium](https://selenium.dev/)
17
- - [chromedriver](https://chromedriver.chromium.org/) or another compatible WebDriver
18
-
19
- ## Disclaimer
20
- For educational and research purposes only. Do not use it commercially.
21
-
22
- ## Installation
23
-
24
- 1. Clone the repository:
25
- ```bash
26
- git clone https://github.com/MieszkoPugowski/FMScraper.git
27
- cd FMScraper
@@ -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
File without changes
File without changes