better-ani-scraped 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/DOCUMENTATION.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ,,,,# Better-Ani-Scraped Documentation
2
2
 
3
- A set of utility functions for scraping anime data from multiple sources (only [anime-sama](https://anime-sama.fr) and [animepahe](https://animepahe.ru) available at the moment). This tool allows you to search for anime, retrieve information, get episodes, and more.
3
+ A set of utility functions for scraping anime data from multiple sources (only [anime-sama](https://anime-sama.org) and [animepahe](https://animepahe.ru) available at the moment). This tool allows you to search for anime, retrieve information, get episodes, and more.
4
4
 
5
5
  ---
6
6
 
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const mangaUrl = "https://anime-sama.fr/catalogue/drcl-midnight-children/scan/vf";
5
+ const mangaUrl = "https://anime-sama.org/catalogue/one-piece/scan_noir-et-blanc/vf";
6
6
  const chapterTitles = await animesama.getAllTitleScans(mangaUrl, true);
7
7
  console.log("Titles:", chapterTitles);
8
8
  };
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const animeUrl = "https://anime-sama.fr/catalogue/86-eighty-six/";
5
+ const animeUrl = "https://anime-sama.org/catalogue/86-eighty-six/";
6
6
 
7
7
  const animeInfo = await animesama.getAnimeInfo(animeUrl);
8
8
  console.log(animeInfo);
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const seasonUrl = "https://anime-sama.fr/catalogue/86-eighty-six/saison1/vostfr/";
5
+ const seasonUrl = "https://anime-sama.org/catalogue/86-eighty-six/saison1/vostfr/";
6
6
 
7
7
  const animeLanguages = await animesama.getAvailableLanguages(seasonUrl, ["vostfr", "vf", "va", "vkr","vcn", "vqc", "vf1", "vf2"], false);
8
8
  console.log(animeLanguages);
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const seasonUrl = "https://anime-sama.fr/catalogue/one-piece/saison11/vostfr";
5
+ const seasonUrl = "https://anime-sama.org/catalogue/one-piece/saison11/vostfr";
6
6
 
7
7
  const embeds = await animesama.getEmbed(seasonUrl, ["smoothpre", "movearnpre", "sibnet", "vidmoly", "sendvid"], true, true);
8
8
 
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const seasonUrl = "https://anime-sama.fr/catalogue/86-eighty-six/saison1/vostfr/";
5
+ const seasonUrl = "https://anime-sama.org/catalogue/86-eighty-six/saison1/vostfr/";
6
6
 
7
7
  const episodeTitles = await animesama.getEpisodeTitles(seasonUrl);
8
8
  console.log("Episode Titles:", episodeTitles);
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const scansUrl = "https://anime-sama.fr/catalogue/drcl-midnight-children/scan/vf";
5
+ const scansUrl = "https://anime-sama.org/catalogue/drcl-midnight-children/scan/vf";
6
6
  const scansImgUrl = await animesama.getImgScans(scansUrl, 9);
7
7
  console.log("Image scans:", scansImgUrl);
8
8
  };
@@ -2,7 +2,7 @@ import { AnimeScraper } from "../../index.js"; // REPLACE BY "from 'better-ani-s
2
2
 
3
3
  const main = async () => {
4
4
  const animesama = new AnimeScraper('animesama');
5
- const animeUrl = "https://anime-sama.fr/catalogue/drcl-midnight-children";
5
+ const animeUrl = "https://anime-sama.org/catalogue/drcl-midnight-children";
6
6
 
7
7
  const seasons = await animesama.getSeasons(animeUrl, ["vostfr", "vf"], ["Anime", "Scans"]);
8
8
  console.log("Seasons:", seasons);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "better-ani-scraped",
3
- "version": "1.7.1",
4
- "description": "Scrape anime data from different sources (only anime-sama.fr, animepahe and crunchyroll for the moment)",
3
+ "version": "1.7.2",
4
+ "description": "Scrape anime data from different sources (only anime-sama.org, animepahe and crunchyroll for the moment)",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -8,7 +8,7 @@ import { title } from "process";
8
8
  const execAsync = promisify(execCallback);
9
9
 
10
10
 
11
- const BASE_URL = "https://anime-sama.fr";
11
+ const BASE_URL = "https://anime-sama.org";
12
12
  const CATALOGUE_URL = `${BASE_URL}/catalogue`;
13
13
 
14
14
  async function ensureChromiumInstalled(customPath) {
@@ -701,7 +701,7 @@ export async function getAllTitleScans(mangaUrl, numberImg = false) {
701
701
  const $ = cheerio.load(res.data);
702
702
 
703
703
  const title = encodeURIComponent($("#titreOeuvre").text().trim());
704
- const urlInfo = `https://anime-sama.fr/s2/scans/get_nb_chap_et_img.php?oeuvre=${title}`
704
+ const urlInfo = `https://anime-sama.org/s2/scans/get_nb_chap_et_img.php?oeuvre=${title}`
705
705
  const infoPage = await axios.get(urlInfo, { headers: getHeaders() });
706
706
  const titleChapter = Object.keys(infoPage.data)
707
707
 
@@ -718,7 +718,7 @@ export async function getImgScans(mangaUrl, wantedChapter) {
718
718
  const mangaTitle = infoScan.mangaTitle
719
719
  const imgUrls = [];
720
720
  for (let i = 1; i <= numberImg; i++) {
721
- imgUrls.push(`https://anime-sama.fr/s2/scans/${mangaTitle}/${wantedChapter}/${i}.jpg`);
721
+ imgUrls.push(`https://anime-sama.org/s2/scans/${mangaTitle}/${wantedChapter}/${i}.jpg`);
722
722
  }
723
723
 
724
724
  return imgUrls
@@ -56,7 +56,6 @@ export async function getVidmolyOrOneuploadVideo(embedUrl) {
56
56
  if (embedUrl.includes("vidmoly.to/")) {
57
57
  embedUrl = embedUrl.replace("vidmoly.to/", "vidmoly.net/");
58
58
  }
59
- console.log(embedUrl)
60
59
  const { data } = await axios.get(embedUrl, {
61
60
  headers: getHeaders(embedUrl),
62
61
  });