Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Processing for CSV files #139

Closed
spekulatius opened this issue Nov 4, 2022 · 0 comments
Closed

Basic Processing for CSV files #139

spekulatius opened this issue Nov 4, 2022 · 0 comments
Assignees

Comments

@spekulatius
Copy link
Owner

Implement basic CSV parsing functionality.

API

As usual, keep it simple:

Direct Call

$data = $web->parseCsv('https://test-pages.phpscraper.de/1.csv');

Chained

$data = $web->go('https://test-pages.phpscraper.de/1.csv')->parseCsv()

Separate Calls

$web->go('https://test-pages.phpscraper.de/1.csv');
$data = $web->parseCsv();

Associative Array vs. Simple Array

While the CSVs are flat by nature, they can be resolved into an associative array. This should be considered as an option. Suitable naming TBC.

Consideration

@spekulatius spekulatius added this to the 1.0 milestone Nov 4, 2022
@spekulatius spekulatius self-assigned this Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant