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

Literary Agents List - Final Output is Blank #1

Open
gabriel-baptiste opened this issue Jun 23, 2023 · 2 comments
Open

Literary Agents List - Final Output is Blank #1

gabriel-baptiste opened this issue Jun 23, 2023 · 2 comments

Comments

@gabriel-baptiste
Copy link

gabriel-baptiste commented Jun 23, 2023

Hello and thank you for this excellent guide.

I previously utilized this tool and all was working fine and very useful.

Recently, when using the following step:

curl 'https://www.pw.org/literary_agents?filter0=9677&field_electronic_submissions_value=All&items_per_page=All' > literary-agents-pw-org.html
xmllint --html --xpath "//li[contains(@Class, 'views-row')]" literary-agents-pw-org.html | xmllint --html --xpath '//text()' - | cut -d: -f2 | sed 's/^[\ ]+//g' > literary-agents-pw-org.txt
python literary_agent_parsing.py --input-file literary-agents-pw-org.txt | sort -u > literary-agents.txt

the terminal displays a variety of HTML parser errors and the the final output file - literary-agents.txt - is empty.

I am not sure why it is no longer working and I really appreciate any help you may provide. Thank you.

@mvbrock
Copy link
Owner

mvbrock commented Jul 27, 2024

Hi @gabriel-baptiste, terribly sorry for not noticing this in over a year. I'm sure you've moved on, but if you're still interested I can definitely make this fix (assuming you haven't already). Thanks for letting me know!

@gabriel-baptiste
Copy link
Author

No worries - yes any help you can provide is much appreciated as I have not yet been able to solve. Thank you for your help and for this great tool!

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

2 participants