This repository is deprecated. Please use this one instead: AutoCiteV2. Thank you <3 We decided to make this change because we want to have a web UI for the tool. Instead of updating the repository, I simply made a new one. This is because this is the bare bones, and I could see why someone would want this, instead of using a flask server, with a web UI. We understand that this might be better to work on instead of figuring out how our stuff works. We will no longer work on this repo, thank you.
https://github.com/Dynamic155/AutoCiteV2
Generate Harvard-style references for web pages. Given a list of URLs, it fetches each page, extracts relevant metadata (like title, author, and publication date), and formats it into a reference. The references are then written to an output file.
- Fetches web pages using the provided URLs.
- Extracts title, author, and publication date from the web pages.
- Formats the extracted information into Harvard-style references.
- Writes the references to an output file.
- Python 3.x
requestslibrarybeautifulsoup4library
You can install the required libraries using pip:
pip install requests beautifulsoup4-
Prepare the input file: Create a file named
urls.txtin the same directory as the script, or just clone the repository. Then list each URL you want to process on a new line. -
Run the script: Execute the script by running the following command in your terminal:
python autocite.py
-
Check the output: The generated references will be written to a file named
references.txtin the same directory.
urls.txt
https://example.com/article1
https://example.com/article2
Generated references.txt
Doe, J. (2020) Example Article 1. Available at: https://example.com/article1 (Accessed: 27 May 2024).
Smith, A. (2021) Example Article 2. Available at: https://example.com/article2 (Accessed: 27 May 2024).
If you found this tool helpful please star the repository <3
If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request.