Spaces:
Running
Running
Download refresh_data.py from cmn22/professionally-me: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/cmn22/professionally-me/resolve/main/refresh_data.py
- Command line
-
hf download hf://spaces/cmn22/professionally-me/refresh_data.py
-
curl -L -o refresh_data.py https://huggingface.co/spaces/cmn22/professionally-me/resolve/main/refresh_data.py
503 Bytes
| """Fetch and clean LinkedIn data from scratch. | |
| Run this once before starting the app, or any time you want to refresh your profile data. | |
| uv run python refresh_data.py | |
| Reads config.json for your LinkedIn URL and Apify actor, then: | |
| 1. Scrapes LinkedIn via Apify → data/linkedin.json | |
| 2. Cleans the raw JSON → data/linkedin_clean.json | |
| """ | |
| from src.fetch_linkedin import main as fetch | |
| from src.clean_linkedin import main as clean | |
| if __name__ == "__main__": | |
| fetch() | |
| clean() | |