-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
35 lines (26 loc) · 862 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This is a sample Python script.
from bs4 import BeautifulSoup as bs
import pandas as pd
import requests
import re
import js2py
import csv
from PlayerReport import *
from bp_scrape import *
from ba_scrape import *
from fg_scrape import *
def main():
print('Scraping BA reports:')
ba_2023_team_wrapper()
print('Scraping BP reports:')
bp_2023_team_wrapper()
print('Scraping FG reports:')
fg_2023_team_wrapper()
#bp_file = '../raw_data/bp_2023_team/bp_2023_MIN_team-list.html'
#html_page = open(bp_file, encoding='utf8')
#html_soup = bs(html_page, 'html.parser')
#[print(x) for x in bp_2023_team_scrape(html_soup, 'MIN')]
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
main()
# See PyCharm help at https://www.jetbrains.com/help/pycharm/