semvec/pypi-packages huggingface dataset:
news-scrapper 0.1.0
A web scraper for Investopedia news headlines
Requires Python: >=3.6

# News Scraper

A web scraper for Investopedia news headlines. This package allows you to scrape the latest news headlines from Investopedia and save them as a CSV file.

## Features

- Scrapes news headlines from Investopedia.
- Saves scraped data as a CSV file with the current date in the filename.
- Headless browser automation using Selenium.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install news_scraper.

\`\`\`bash
pip install news_scraper
\`\`\`

## Usage

### As a Module

You can use the \`news_scraper\` package in your Python scripts.

\`\`\`python
from news_scraper import scrape_news

chrome_driver_path = r"path_to_your_chromedriver"
website_url = "https://www.investopedia.com/stocks-4427785"

file_path = scrape_news(chrome_driver_path, website_url)
print(f"News headlines saved to {file_path}")
\`\`\`

### As a Command-Line Tool

You can also use the \`news_scraper\` package from the command line.

#### Parameters

- \`chrome_driver_path\`: The path to your ChromeDriver executable.
- \`website_url\`: The URL of the website you want to scrape (default is Investopedia's stocks page).

#### Usage

\`\`\`bash
news-scraper <chrome_driver_path> <website_url>
\`\`\`

#### Example

\`\`\`bash
news-scraper "C:\path\to\chromedriver.exe" "https://www.investopedia.com/stocks-4427785"
\`\`\`

#### Output

The script will save a CSV file named \`news_headlinesMMDDYYYY.csv\` in the directory where the script is executed. The filename includes the current date.

## Requirements

- Python 3.6 or higher
- Selenium
- pandas
- A ChromeDriver executable compatible with your version of Chrome browser

## Setup

1. Install Google Chrome if it's not already installed on your system.
2. Download the ChromeDriver executable from [ChromeDriver Downloads](https://sites.google.com/a/chromium.org/chromedriver/downloads) and place it in a known directory.
3. Install the required Python packages using pip:

\`\`\`bash
pip install -r requirements.txt
\`\`\`

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgements

- [Selenium](https://www.selenium.dev/) - Browser automation tool
- [pandas](https://pandas.pydata.org/) - Data manipulation and analysis library
gpxprofpy 0.1.0
Package with tool to plot a GPX elevation profile
Requires Python: >=3.8

# GPXProfilePlotter

Tool for plotting a GPX elevation profile

Import plot_gpx_profile function to use:
``from gpxprofpy import plot_gpx_profile``

Parameters
----------

**filename** : str
    GPX file name.

**plot_slope**: bool, optional
    Plot slope segments (default: False). If activated, plot segments that are longer than
    variable SEUIL defined in .params. Segments colors are chosen accordingly to their
    mean slope, and colors are also defined in .params.

**plot_points**: bool, optional
    Plot remarquables points (default: False). If activated, module tries to open a CSV file
    with the same name as the main GPX file. Remarquable points are red as
    (distance, label, has_water). Points are then added on the profile, with different
    styling for start and finish points. Colors are also defined in .params.

**save_fig**: bool, optional
    Save plot as png file (default: False). If activated, plot is saved to a png
    file with the same name as the main GPX file.

Examples
--------

``plot_gpx_profile("data/MyGPXFile.gpx")``
Plots elevation profile only

``plot_gpx_profile("data/MyGPXFile.gpx", True, True, True)``
Plots elevation profile, slope segments, remarquables points and saves a png file

``plot_gpx_profile("data/MyGPXFile.gpx", save_fig=True)``
Plots elevation profile and saves a png file

# Changelog

## v0.1.0

Major refactoring of the code

Add:

- Tests for basic functions. More to come
- Merging segments tools

Fix:

- Slope segment detection now detect all segments
- Micro segments are detected and merged

## v0.0.5

Add:

- README information

## v0.0.4

Fix:

- Versioning issues

## v0.0.3

Fix:

- Projects URL in toml configuration file

## v0.0.2

Initial version

# Features to come (in random order)

- Colors choice
- Miles / km option
- Change files names

# Known bugs

- When plotting without remarquable points, y limit is badly configured