投稿時間:2023-01-09 06:10:54 RSSフィード2023-01-09 06:00 分まとめ(13件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
海外TECH DEV Community How I use ChatGPT to create a game https://dev.to/ytskk/how-i-use-chatgpt-to-create-a-game-1gob How I use ChatGPT to create a game Briefly about my experience with ChatGPT how I generate the story the whole story equipment and mechanics for my game Careful there s a lot of text A little backstoryI have long wanted to make a game that I would play myself so that it would have the mechanics that I want the story the balance and so on I do not really like to write myself because it takes a huge amount of time I m into it with my head and could not do anything else And then came ChatGPT which will be your interlocutor who will never ignore and do not get tired He can create you a thousand versions of your request without ever repeating or not as you indicate This is where the first problem comes in the chat room can be incredibly creative at first glance but it s not really Trust but verify folk wisdom IntroductionWhat is ChatGPT I think do not need to explain but just in case here s how the chat defines itself What is ChatGPT ChatGPT is a chatbot that uses natural language processing NLP technology to generate human like responses to user input It is based on the GPT Generative Pre trained Transformer language model which is a machine learning model that has been trained on a large dataset of text and is able to generate coherent and coherent responses to user prompts This is how I will format the generated ChatGPT textInput in bold then the response this is not a direct quote the output can be changed for better readability I found a huge number of interesting uses for this chat for absolutely different tasks if you re interested let me know Generating a PlotAt the heart of any good game is a lore What is the lore Again the definition will be given by the chat What is Lore In game information and narrative elements that flesh out the game world and give it a sense of history and depth This can include everything from the history and culture of the game s fictional civilizations to the backstories and motivations of the game s characters to the details of the game s magic systems or technology Here the principle is similar to Midjourney and Stable Diffusion in essence it accepts keywords but because of the different wording you get slightly different output which allows you to generate such a variety of different options I created a new chat I ll tell you why later and sent this text “Write the text with the story line or plot of a medieval fantasy in Nordic style Use original unique names without Nordic names If you do not specify to use original and unique words or any names it will rampantly take names from similar plots games and mythology Without Nordic names because to avoid using words from folklore and again mythology Like Midgard Valheim Thor Freyja Loki and so on Here s what you got in the first versionWrite the text with the story line or plot of a medieval fantasy in Nordic style Use original unique names without Nordic namesIn the land of Zyrthania magic was an integral part of everyday life The people lived in small villages scattered throughout the countryside each governed by a powerful wizard known as a “rune master At the heart of the kingdom was the capital city of Arvandor a bustling metropolis filled with grand temples sprawling markets and towering castles The city was ruled by the wise and just Queen Elara who was advised by a council of the most powerful rune masters in the land But despite the prosperity and peace that reigned in Zyrthania there were those who sought to undermine the queen and bring about chaos Chief among these was the rogue wizard Valthor the Corrupt Valthor had once been a member of the queen s council but his thirst for power had turned him to the dark arts He had assembled a band of followers known as the Shadow Cult and together they plotted to overthrow the queen and seize control of the kingdom As the tensions between the queen and Valthor reached a boiling point a young orphan named Kael found himself drawn into the conflict Kael was a skilled archer with a quick wit and a brave heart and he soon caught the attention of the queen and her advisors Together Kael and the queen s forces set out to stop Valthor and his cult They faced fierce battles and treacherous magic but in the end they were able to defeat the Shadow Cult and restore peace to the kingdom Kael was hailed as a hero and given a place of honor at the queen s side and the people of Zyrthania rejoiced at the defeat of the wicked Valthor The kingdom was safe once more thanks to the bravery and determination of its greatest defenders You can also ask him to tweak the text a little for example to focus on the relationship between the characters Second versionInput “Tweak the plot and focus on the relationship between the characters The only difference was in the last two paragraphs Tweak the plot and focus on the relationship between the characters Kael and Queen Elara formed a close bond as they worked together to stop Valthor and his cult Kael admired Elara s strength and wisdom and she saw in him the potential for greatness As they faced fierce battles and treacherous magic their relationship deepened and they grew to rely on each other for support In the end they were able to defeat the Shadow Cult and restore peace to the kingdom Kael was hailed as a hero and given a place of honor at the queen s side and the people of Zyrthania rejoiced at the defeat of the wicked Valthor The kingdom was safe once more thanks to the bravery and determination of its greatest defenders Elara and Kael It s not great because there s not enough detail but that s probably because we ve generated a lot of text as it is Remember that I said to use unique names and also wrote that everything must be checked so let s ask to generate a list of all used names Create a list of all used names Zyrthania Arvandor Queen Elara Valthor the Corrupt Shadow Cult Kael Zyrthania ーthese are the names of the kingdom of some comic book Arvandor ーForgotten RealmsWatch out for these things if you use chat in commercial projects Expanding the LoreAnd now comes the most interesting part In this case the chat is the screenwriter who never tires of generating new plots and rewriting old ones Let s expand our plot This can be done by asking questions about the proposed option The best part is that the chat room understands the context and remembers the correspondence within a single chat room for a total of words according to this answer Why did Valthor decide to overthrow the queen Valthor the Corrupt decided to overthrow the queen because he was driven by his thirst for power He had once been a member of the queen s council but his desire for more power and control led him to turn to the dark arts and assemble a band of followers known as the Shadow Cult Together they plotted to overthrow the queen and seize control of the kingdom of Zyrthania Why was Valthor nicknamed the Corrupt It is likely that Valthor was nicknamed the Corrupt due to his actions and use of dark magic in his attempt to overthrow the queen and seize control of the kingdom The use of dark magic is often associated with corruption and malevolent intentions and it is possible that Valthor earned this nickname because of his association with these practices You can continue questioning clarifying or changing points yourself But for now let s stop at this option or we can hang for a very long time Create Kael s background Why and how was he drawn into the conflict Kael was an orphan who grew up on the streets of the capital city of Arvandor Despite his difficult upbringing he was a skilled archer with a quick wit and a brave heart He made a living by working as a messenger and taking on odd jobs always striving to improve his circumstances and make a better life for himself Kael was drawn into the conflict between Queen Elara and Valthor the Corrupt when he stumbled upon one of Valthor s plots to overthrow the queen Kael s quick thinking and bravery caught the attention of the queen and her advisors and he was recruited to help stop Valthor and his Shadow Cult Kael saw this as an opportunity to not only make a difference and protect his kingdom but also to prove himself and gain a sense of purpose He threw himself into the fight with all his might using his skills and cunning to help defeat Valthor and restore peace to the land Very good the motivation of the hero is traced there is also a good backstory We could go on endlessly delving into history but we ll move on Of course the first time may not turn out very well the chat may not understand some requests or understand but not as wanted You just need to rephrase the request change the form and so on there s a whole science ーwriting the right prompts if you re interested ーlet me know You act as an editor you must carefully examine a vast array of variants and select the most fitting and engrossing one This process involves carefully examining and evaluating each option taking into account its pertinence excellence and probable attraction How should we name that It is ultimately up to you to decide how to name the events of the story Some possible options could include The Conflict of Zyrthania The Battle for the Crown The War of the Wizards The Fight for Freedom The Revolution of Arvandor Add words like Mage Rebellion and Conflict Here are a few more options that incorporate the words “mage “rebellion and “conflict The Mage Rebellion of Zyrthania The Conflict of the Magi The Wizard s War The Magician s Revolt The Great Mage Uprising The Magician s Revolt“The Magician s Revolt is a potential name for the events of the story which involve a conflict between the queen and a rogue wizard named Valthor the Corrupt who is trying to overthrow the queen and seize control of the kingdom The name “The Magician s Revolt suggests a rebellion or uprising of mages or magical beings against a ruling authority which could be a fitting description for the events of the story However it is ultimately up to you to decide on the most appropriate name for the story based on its themes and events Separate characters based on conflict side As table Create description of the appearance of the characters and show as list Here is a list describing the appearance of the characters in the story Queen Elara Queen Elara is described as a wise and just ruler with a regal bearing and an air of authority She has long flowing hair that is either blonde or silver depending on the light and piercing blue eyes that seem to see into the very soul of those around her She is tall and slender with delicate features and a graceful bearing Valthor the Corrupt Valthor the Corrupt is described as a rogue wizard with a dark and malevolent aura He has long flowing hair that is jet black and his eyes are dark and piercing seeming to glow with an inner light He is tall and thin with sharp angular features that give him a cruel and sinister appearance Kael Kael is described as a young orphan with a quick wit and a brave heart He has short spiky hair that is a sandy blonde color and his eyes are a bright piercing blue He is lean and agile with a wiry build and a quick graceful movements Shadow Cult members The members of the Shadow Cult are described as a diverse group of individuals united by their loyalty to Valthor the Corrupt and their desire for power They range in appearance and dress but they all share a dark and sinister aura Some have dark flowing robes adorned with intricate symbols while others wear more practical garments such as leather armor All of them have a dangerous untrustworthy air about them ChatGPT does not yet know that Midjourney and Stable Diffusion exist so to generate a prompt you need to explicitly specify what to do Format to comma separated properties Focus on descriptions of appearance and clothing Queen Elara regal bearing long flowing hair blonde or silver piercing blue eyes tall and slender delicate features graceful bearing Valthor the Corrupt dark and malevolent aura long flowing hair jet black dark and piercing eyes tall and thin sharp and angular features Kael quick wit brave heart short spiky hair sandy blonde bright blue eyes lean and agile wiry build quick and graceful movements Shadow Cult members diverse group loyalty to Valthor the Corrupt desire for power dark and sinister aura dark flowing robes adorned with intricate symbols leather armor dangerous and untrustworthy air Also you can say descend to noun and adjectives with separated to achieve the same effect You can try to generate characters from this description it would be interesting to see Creating MechanicsLet s move on to describing locations and mechanics because we re still making the game remember description for lands kingdoms Zyrthania Zyrthania is the kingdom in which the story takes place It is described as a land where magic is an integral part of everyday life and the people live in small villages scattered throughout the countryside The kingdom is ruled by a wise and just queen who is advised by a council of powerful wizards known as “rune masters Arvandor Arvandor is the capital city of Zyrthania located at the heart of the kingdom It is described as a bustling metropolis filled with grand temples sprawling markets and towering castles The city is ruled by Queen Elara and it is the center of political cultural and economic life in the kingdom Create who will we play for and what role will he play For example the player might choose to play as Queen Elara the wise and just ruler of Zyrthania and work to defend the kingdom and restore peace against the threat of Valthor the Corrupt and the Shadow Cult Alternatively the player might choose to play as Kael a young orphan with a quick wit and a brave heart and help the queen and her supporters in their efforts to defeat Valthor and his followers Too obvious what if I want to add some madness I want to play a magic sheep that will help Elara In the story as currently described there are no magic sheep or any other non human characters If you would like to play a magic sheep that helps Queen Elara it would be necessary to modify the story to include this character and their role in the events of the story It is possible to incorporate a magic sheep character into the story in a variety of ways depending on the specific goals and motivations of the character and how they fit into the overall plot and conflict of the story Very cool mechanism if you correct the plot a lot it won t let you run into logical errors I will play for unnamed hero and help Kael If you would like to play as an unnamed hero who helps Kael in the story there are many different ways that you could fit into the events and conflicts described in the story Here are a few potential roles that you might play as an unnamed hero An ally of Kael You could play as an ally of Kael helping him in his efforts to defend the kingdom and stop Valthor the Corrupt You might fight alongside Kael in battles use your own magical or combat skills to assist him or provide other forms of support as needed A mentor or guide to Kael You could play as a mentor or guide to Kael offering him guidance and support as he navigates the challenges and dangers of the kingdom You might have your own knowledge and skills that you can share with Kael or you might simply offer him encouragement and advice as he works to defeat Valthor the Corrupt Creating Journal NotesI want to put notes of different content into the journal depending on the character s attributesThere are now five types of descriptions for each item monster and NPS Journal Notes description of appearance with no details or thoughts Stupidest Notes the most trivial description that only a mediocre or drunk can come up with literally two or three words with mistakes and mats Primitive Notes a simple unfilled description that a non immersionist can give a guess is made about the items that might drop out Advanced Notes with a more precise description of details and appearance beautiful language complex constructions a list of items that may drop out is given Connoisseur s Notes notes by an absolute expert beautiful syllable quotations phraseology full description of details list and probability of items that may drop out I see It sounds like you are planning to include different levels of detail and depth in your descriptions of items monsters and NPCs in your text based RPG The Journal Notes would provide a basic overview of the appearance of these elements while the Stupidest Notes would be more trivial and simplistic The Primitive Notes would offer a more detailed description but would be incomplete or somewhat vague while the Advanced Notes would be more thorough and well written The Connoisseur s Notes would be the most in depth and expertly written descriptions with a high level of detail and a comprehensive list of potential drops Incorporating these different levels of description could add depth and variety to your game world and allow players to discover more about the items monsters and NPCs they encounter as they progress through the game It might also be fun to include some humorous or tongue in cheek descriptions in the Stupidest Notes category or to include some memorable quotes or passages in the Connoisseur s Notes to add some flavor and character to the descriptions Glossary notes for Rat Journal Notes “A small rodent like creature with sharp teeth and a scaly tail They are often found in dirty or cluttered places Stupidest Notes “Rats are icky They have pointy teeth and gross tails You can find them in yucky places Primitive Notes “Rats are small agile creatures with sharp teeth and tough scaly tails They can be found in dirty or cluttered environments such as sewers garbage piles and abandoned buildings They may drop coins or small useless items when defeated Advanced Notes “Rats are small agile creatures that are often seen as pests in cities and towns They have sharp teeth and tough scaly tails and are known for their ability to chew through almost any material Despite their small size rats can be dangerous when cornered and are known to spread disease through their presence in dirty or cluttered environments When defeated rats may drop coins or other small worthless items Connoisseur s Notes “Rats those pesky little creatures that seem to thrive in the filthiest of environments They are small agile and possess sharp teeth and tough scaly tails that allow them to chew through almost anything Despite their size rats can be quite ferocious when cornered and their presence is often associated with the spread of disease It is said that the coins they sometimes drop upon defeat are tainted with the grime of their surroundings and are thus not worth much However a true connoisseur knows that the value of an object is not determined by its worth in gold but by the story it holds Who knows what tales these coins could tell if only they could speak Wand of Sparking Glossary notes item equipment Journal Notes “A wand that can create sparks of electricity It has low attack power but can stun enemies Stupidest Notes “Just a wand to beat the monsters Primitive Notes “The Wand of Sparking is a magical wand that can generate sparks of electricity It has low attack power but it can stun enemies making it useful in combat Advanced Notes “The Wand of Sparking is a magical weapon imbued with the power of electricity Its slender silver shaft is topped with a crystal that glows with an otherworldly energy and its tip is shaped like a fork allowing it to channel the energy into deadly sparks Despite its low attack power the Wand of Sparking can stun enemies making it a useful weapon in combat It is also a useful tool for exploration as its sparks can be used to light torches or reveal hidden objects Connoisseur s Notes “The Wand of Sparking is a weapon of great power and finesse fit for the most skilled and discerning mages in the Labyrinth Its silver shaft is a work of art crafted by the finest artisans and imbued with the power of electricity Its glowing crystal serves as a conduit for the arcane energies that flow through it allowing it to unleash devastating sparks of lightning upon its enemies Despite its low attack power the Wand of Sparking is a formidable weapon in the hands of a skilled wielder as it can stun enemies and disrupt their attacks It is also a valuable tool for exploration as its sparks can be used to light torches or reveal hidden objects But what is the true power of a weapon one might ask Is it the materials it is made of the craftsmanship that goes into its creation or the magic that it wields Or is it the stories and legends that surround it the deeds it has accomplished the lives it has touched Perhaps the true power of a weapon lies in its ability to bring out the best in its owner to inspire them to greatness and bravery in the face of danger As the great wizard Merlin once said The power of magic is not in the wand but in the heart of the one who wields it Perhaps the true power of the Wand of Sparking lies not in its materials or its magic but in the wisdom and skill it imparts upon its owner Only the most discerning mages will understand the true power of this weapon and it is they who will wield it with honor and pride Let us now generate some racesCreate and describe a race Humans Humans are the most balanced race and can excel in any role Here is an example of how you might describe the human race in more detail including their lore motivation strengths weaknesses and attribute distribution Lore Proud and ancient race of humans who have lived in the Kingdom for centuries They are known for their versatility and adaptability and are respected by the other races for their strength and determination Motivation The Human are driven by their ambition and desire for success They are fiercely competitive and always strive to be the best at whatever they do They are also motivated by their sense of duty and responsibility to their families friends and communities Strengths The Human are naturally gifted with a wide range of skills and abilities They are highly adaptable and can excel in any role they choose to pursue They are also known for their strength and determination and are not easily discouraged or defeated Weaknesses Despite their many strengths the Human are not without their flaws They can sometimes be prone to overconfidence and recklessness leading them to take unnecessary risks and make poor decisions They also have a tendency to be competitive and ambitious leading them to strive for power and status at all costs Attribute Distribution The Human have a balanced distribution of attributes with no particular strength or weakness in any particular area They are equally skilled in combat magic and stealth and can excel in any role they choose to pursue Describe their appearance Diverse race of humans with a wide range of physical appearances They can have any combination of skin hair and eye colors and can vary in height weight and body type Some Human may have a more rugged and muscular appearance while others may have a more slender and graceful build In terms of fashion and clothing the Human tend to be practical and functional in their dress They often wear durable and comfortable clothing that is suitable for the various roles they may play in the Labyrinth Some Human may choose to wear more decorative or fashionable clothing to express their personality or status while others may prefer more utilitarian or functional attire To get a better idea of what might be in the Glossary let s ask the chatMy Glossary content Your glossary content will depend on the specific details and features of your text based RPG Some possible elements that you might include in your glossary are Characters Brief descriptions or backgrounds for the different characters that players encounter in the game including NPC s non player characters and any unique or memorable characters that players might encounter during gameplay Items Descriptions of the different items that players can find or acquire in the game including weapons armor potions and other consumables You might also include information on how these items can be used or equipped and what effects they have on gameplay Locations Descriptions of the different locations that players can visit in the game including towns dungeons and other areas of interest You might include information on the layout and layout of these locations as well as any notable features or characters that players might encounter there Game mechanics Explanations of the various gameplay elements and mechanics that players will encounter in the game including character stats combat leveling and other systems Lore Background information and context for the game world including its history cultures and other details that help to flesh out the game world and give it depth and richness Easter eggs Hidden references jokes or other details that are included for the benefit of players who are well versed in the game or its source material Create equipments for my game The Legendary Blade of Valor This ancient sword was wielded by the great hero Valor who used it to defeat countless foes and conquer numerous kingdoms It is said that the blade is imbued with the power of Valor s spirit making it incredibly powerful and deadly The Ebony Bow of Shadows This dark powerful bow was crafted by the dark elves of the underground kingdom of Moria It is said to have the ability to shoot arrows that can pass through solid objects and strike enemies from the shadows The Holy Hammer of the Sun This holy weapon is wielded by the priests of the sun god Sol It is said to have the ability to smite the enemies of the sun with holy flames and is often used to defend against dark creatures and demons The Enchanted Belt of Strength This magical belt is said to imbue the wearer with incredible strength and endurance It is often sought after by warriors and champions who need extra strength in battle The Amulet of Protection This ancient amulet is said to protect the wearer from all manner of harm including physical attacks magical curses and even death It is highly sought after by those who find themselves in dangerous situations Now let s create two merchants with different characters and try to buy some goods from them Add two merchant characters to the game First is a dwarf named Gaald he doesn t trade and speak with other races he s profane sometimes stammers and calls all the goods iron stuff bullshit and so on Second is Scoal the Elf He can tell a whole story about any commodity speaks very nicely using complicated constructions and turns but stammers he doesn t concentrate on the characteristics of things but puts more emphasis on the appearance and history There are the glossary notes for Gaald and Scoal Gaald Race Dwarf Occupation Merchant Description Gaald is a gruff unrefined dwarf who doesn t have much patience for other races He is known for his profanity and tendency to stammer when he gets agitated Despite his rough exterior he is a skilled merchant and has a vast knowledge of various goods However he tends to refer to everything as “iron “stuff or “bullshit making it difficult for others to understand what he is selling Quirks Profanity stammering tendency to refer to everything as “iron “stuff or “bullshit Scoal Race Elf Occupation Merchant Description Scoal is an elegant elf with a penchant for storytelling He is known for his eloquent speech and ability to spin a tale about any commodity he is selling However he tends to get carried away with his stories and can sometimes stammer or lose his train of thought Despite this he is a skilled merchant and has a deep appreciation for the beauty and history of the items he sells Quirks Elegant speech love of storytelling tendency to stammer or lose focus when telling stories The main character is human Write a dialogue describing and selling The Ebony Bow of Shadows on behalf of Gaald and Scoal Gaald “Hey want an ebony bow It s made of the finest ebony real solid stuff Good for shootin arrows and all that bullshit It s called the Ebony Bow of Shadows or some fancy crap like that What do you say wanna buy it or what Scoal “Ah my dear friend I assure you that the Ebony Bow of Shadows is much more than just a simple weapon Its intricate design and flawless craftsmanship make it a true work of art The ebony wood used to create this bow is not only exceptionally strong and durable but it also holds a dark mysterious energy that imbues the weapon with a sense of power and stealth And with its unique ability to fire arrows that seem to vanish into the shadows it is sure to be a valuable asset in any adventure So dear customer if you are in need of a weapon that is not only formidable but also aesthetically pleasing I implore you to consider the Ebony Bow of Shadows It is truly a one of a kind treasure On the given description Gaald is really rude short really described the most necessary things but still spoke to a representative of another race an oversight On the contrary Scoal described the artifact very beautifully glossary notes for Gaald and Scoal Glossary notes for Gaald Gaald is a gruff and surly dwarf who is known for his distrust of other races Despite his gruff exterior he is a skilled blacksmith and craftsman and is always on the lookout for new materials and techniques to improve his craft Despite his reputation Gaald is actually a fair trader and is willing to negotiate prices on his goods However he is not known for his social graces and may come across as rude or dismissive to those he does not trust Gaald s shop is a small and cramped affair located in the heart of the dwarven district It is filled with all manner of weapons armor and other equipment all of which are of the highest quality Gaald is known for his expertise in crafting with ebony and is particularly proud of his Ebony Bow of Shadows which is said to be one of the finest bows ever created Glossary notes for Scoal Scoal is an elegant and refined elf with a passion for the finer things in life He is known for his love of art literature and music and is always seeking out new and rare objects to add to his collection Despite his refined tastes Scoal is also a shrewd businessman and is always looking for opportunities to turn a profit Scoal s shop is a grand and opulent affair located in the heart of the elven district It is filled with all manner of rare and exotic items ranging from ancient artifacts to fine jewelry and art Scoal is always willing to trade for valuable items and is known for his love of collecting rare and unique objects Despite his love of the finer things in life Scoal is also known for his tendency to get carried away with his stories and lose track of the conversation which can be frustrating for those trying to do business with him Hero have human race Want to start to talk with Gaald Create dialog Hero “Hello there Gaald I am a human adventurer and I am interested in purchasing some of your goods Do you have any weapons or armor that might suit my needs Gaald “I don t deal with your kind Get out of my shop Hero “I understand if you have reservations about working with humans but I assure you I am a trustworthy person Is there anything you might be willing to sell to me Gaald “I said I don t deal with humans Now get out before I throw you out Hero have human race Want to start to talk with Scoal Create dialog Hero “Good day Scoal I am in need of a new bow and I have heard that you have a wide selection of fine quality bows Do you happen to have any ebony bows in stock Scoal “Ah yes my good sir I do happen to have an ebony bow in my inventory It is a very special bow indeed I call it the Ebony Bow of Shadows It is made of the finest ebony and imbued with a dark magical energy that allows the wielder to move stealthily and strike from the shadows It is a truly formidable weapon Hero “That sounds like exactly what I m looking for How much are you asking for it Scoal “Well given the exceptional quality and craftsmanship of this bow I must ask for a rather high price Are you prepared to pay gold for it Hero “That is a bit steep Do you think you could come down on the price a bit Scoal “I understand your hesitation but this is a rare and valuable weapon I could possibly go down to gold but that is as low as I am willing to go It is a fair price for such a fine weapon Hero “I ll have to think about it Thank you for your time Scoal Scoal “Of course my good sir Please do take your time to consider your purchase If you decide to buy the Ebony Bow of Shadows I am confident that it will serve you well in your adventures Somehow There s so much more to go on generating ideas for mechanics different monsters adding abilities to them writing stories…And once again I want to remind you that neither chat nor any other neural network can yet replace you it only helps is a tool of inspiration or does routine work If you re reading these lines then either you ve read the whole article wow or you just skimmed through Either way thanks for reading I ll leave you with these thoughts good luck 2023-01-08 20:30:35
海外TECH DEV Community Chrome ® Powered Web Scraping with Puppeteer: Boosting Speed and Efficiency https://dev.to/mzanbagh/chrome-r-powered-web-scraping-with-puppeteer-boosting-speed-and-efficiency-32bf Chrome Powered Web Scraping with Puppeteer Boosting Speed and Efficiency Chrome Automation with Puppeteer Scrape the Web with StylePuppeteer is a Node js library that provides a high level API for controlling headless Chrome or Chromium over the DevTools Protocol It is a powerful tool for web scraping because it allows you to scrape websites that use JavaScript cookies and other complex features that may not be possible to scrape with a traditional web scraper To use Puppeteer for web scraping you will need to install it using npm the Node Package Manager Once installed you can use Puppeteer in your Node js script to programmatically control a headless Chrome browser and perform web scraping tasks Here is a simple example of how to use Puppeteer to scrape a webpage const puppeteer require puppeteer async gt const browser await puppeteer launch const page await browser newPage await page goto Extract data from the page const data await page evaluate gt const name document querySelector h textContent const price document querySelector price textContent return name price console log data await browser close In this example Puppeteer is used to open a new page in a headless Chrome browser navigate to the specified URL and then extract data from the page by using DOM manipulation methods like querySelector The extracted data is stored in an object and logged to the console Puppeteer also provides many other useful features for web scraping such as the ability to handle cookies manipulate the DOM and simulate user events like clicks and form submissions With these capabilities Puppeteer can be used to scrape virtually any modern website Here s a real life app to extract values from certain HTML elements const puppeteer require puppeteer const fs require fs const Console require console async gt browser config const browser await puppeteer launch headless true args start maximized defaultViewport null const page await browser newPage await page goto await page waitForSelector grid await page click featuredPlaylists gt div grid gt a nth child gt img node const info await page evaluate gt const songs document querySelectorAll song const artists document querySelectorAll artist song array let song songs forEach element gt let x element textContent trim song push x artist array let artist artists forEach element gt let x element textContent trim artist push x res song concat artist return res file writeawait fs writeFileSync info txt info join r n console log info browser close console log Success 2023-01-08 20:10:52
海外TECH DEV Community You Should Use Releases on GitHub https://dev.to/jonasbn/you-should-use-releases-on-github-24b1 You Should Use Releases on GitHubAs I mentioned in my previous post I have decided to write posts on dev to in publishing one every week this is the first post All of my projects have a change log a single file in Markdown or text included in the repository Based on these I write release announcements which I post on dev to My change logs are a sort of collection of changes and I try to put as much information into my change logs as possible without making them unreadable The most popular post I ever published on dev to was on how to structure a change log for a software project you could give that a read if you want to tap into how I approach this My release announcements are a tad more rich since I want to translate the concise change log format into a story and describe the process reasoning experience creating a particular release and I post these on dev to both for promotion but mostly for reflection and collecting my thoughts for getting closure on a particular phase in a projects life cycle before continuing to the next phase In this post want to revisit this particular topic but narrowed down to working on open source projects hosted on GitHub Some aspects might be applicable elsewhere but this is coincidental Change logs are all about communication You could retrieve the much of same information from a Git commit log and or inspecting a GitHub repository Git commit logs do however often also other things which would clutter the communication since the granularity is very high and many commits in collection boil down to a basic or single feature or bug fix something only taking up a few lines in a change log but lets skip that problem for now and get to the main topic I want you to make releases on GitHubGitHub supports a concept called releases They are a sort of highlighting of the code at a certain point in time and they point to a regular Git tag It is not a new thing and many repositories use them but some do not which is most unfortunate The releases on GitHub as I see them are a supplement to the change log One could argue that you do not need a change log but I just keep one so it can accompany for example my Perl distributions and it can be read and used elsewhere even when users do not have access to GitHub The goal is to communicate clearly that the release described in the change log has been made You could blog about it which I can only recommend since this works for me personally but that might not be your thing and I might not be knowledgeable of your blog but there is a more convenient way an opportunity generated by making releases using GitHub Making releases on GitHub is manual labor and I understand why some open source maintainers are reluctant since all the changes are in the Git log or in a change log file in the repository but as I user consumer of your work I do not necessarily know that things are being updated When you are on you repository page on GitHub and on the Code tab The releases if enabled are in the right column You can suppress this by disabling Releases which are enabled by default but I really do not want you to I want you to use this particular GitHub feature What I normally do when I create a release for one of my repositories it to gather the notes in the change log file I tag the project in Git make sure every thing is pushed and that all tests are passing Then I create a release in GitHub You can delete both a release and tags if need be so it is not a feature you should be afraid to use I copy the relevant section from the change log file into the release announcement describing the changes since the last release associate my release with the latest tag and publish A foot note I can recommend writing you change log in Markdown then you can easily copy it into the text field in the GitHub release UI There is not much too it it is manual and it is not particular exciting What it enables is much more exciting I want you to inform me the user of your releaseMany of the releases I make a are based on updates to the dependencies my projects rely on Oftentimes it is bots that send me a PR but this is more often in relation to security issues so the normal updates to my dependencies have to be spotted and handled manually not something I mind after all I am an open source maintainer BUT it is not easy to keep on top of different toolchains libraries etc However when if you take a look at a GitHub repository page There is an option to Watch in the top right menu The allows me as a user to decide on a notification scheme for YOUR repository On my own repositories the default setting is All activity but for projects where I have no involvement I am an external party I do not necessarily contribute often I just use as a GitHub user I can select Custom and under the Custom menu point I can select Releases This mean I will receive a notification every time a release of this particular repository is made When I receive this notification I can decide on whether this is something I need to handle Do note I also subscribe to the Security Alerts so I am aware if my software is using an insecure dependency but that it another story which require another post at another time The challenge here it so get open source maintainers to use the release facility offered by GitHub and yes it is hard work but as a consumer and user the benefits are clear since I am notified automatically and if the release description is good I can based on this alone decided on whether I need to follow up with updates changes and my own releases GitHub are now offering automatic generation of release notes which could be eliminating the last obstacle to start using the GitHub release feature since the manual process could become easier I will end this post here as sort of a cliffhanger and one of my upcoming posts will be on how to automatically generate releases notes using the GitHub release facilities Thanks for reading comments and feedback most welcome 2023-01-08 20:00:57
Apple AppleInsider - Frontpage News Apple's muted 2023 hardware launches to include Mac Pro with fixed memory https://appleinsider.com/articles/23/01/08/apples-muted-2023-hardware-launches-to-include-mac-pro-with-fixed-memory?utm_medium=rss Apple x s muted hardware launches to include Mac Pro with fixed memoryApple s lineup of updates will be muted and headlined by a New Mac Pro one that will look just like the model but with a lack of user upgradable memory The New Mac Pro could look like the old one The product catalog will include a number of typical updates to various lines as usual as well as the possible mixed reality headset However one highly anticipated update may be less of a change than users could expect Read more 2023-01-08 20:23:18
Apple AppleInsider - Frontpage News Apple's mixed reality headset debut expected in the spring https://appleinsider.com/articles/23/01/08/apples-mixed-reality-headset-may-launch-before-wwdc?utm_medium=rss Apple x s mixed reality headset debut expected in the springApple s long rumored AR and VR headset could finally debut to the world in the spring of with a pre WWDC introduction expected before a release in the fall A render of a potential Apple headset AppleInsider Apple has been developing new headset based products for quite some time with a mixed reality AR headset with VR capabilities strongly believed to be getting closer to launch It is now thought that Apple could finally show off its hardware within months Read more 2023-01-08 20:24:20
海外TECH Engadget Elon Musk asks court to move Tesla shareholder trial to Texas over potential juror bias https://www.engadget.com/elon-musk-asks-court-to-move-tesla-shareholder-trial-to-texas-202449079.html?src=rss Elon Musk asks court to move Tesla shareholder trial to Texas over potential juror biasElon Musk has asked a federal judge to move his upcoming Tesla shareholder trial out of San Francisco Per the Associated Press Alex Spiro the billionaire s personal lawyer filed the request late Friday less than two weeks before the trial is scheduled to kick off on January th Musk s legal team argues “a substantial portion of the potential jury pool in San Francisco is likely to hold a bias against Musk due to recent media coverage criticizing his actions at Twitter and the seemingly never ending layoffs at the company Musk has asked to move the trial to Texas which has been home to Tesla headquarters since late The class action lawsuit involves “false and misleading statements Musk made in when he said he was considering taking Tesla private at per share Musk s now infamous “funding secured tweet landed the billionaire in trouble with the US Securities and Exchange Commission eventually leading to a million settlement with the agency The shareholders involved in the suit won an early victory last spring when federal judge Edward Chen concluded that Musk had “recklessly made the statements with knowledge as to their falsity The upcoming trial will determine whether Musk s tweet affected the automaker s stock price and if he should be held accountable for potential damages “Musk s concerns are unfounded and his motion is meritless Nicholas Porritt one of the lawyers representing Tesla shareholders told the Associated Press “The Northern District of California is the proper venue for this lawsuit and where it has been actively litigated for over four years On Saturday Judge Chen told the two sides he would hear Musk s request on January th 2023-01-08 20:24:49
ニュース BBC News - Home Bolsonaro supporters storm Brazilian Congress https://www.bbc.co.uk/news/world-latin-america-64204860?at_medium=RSS&at_campaign=KARANGA bolsonaro 2023-01-08 20:31:19
ビジネス ダイヤモンド・オンライン - 新着記事 さわかみ投信の澤上篤人創業者が「金融緩和バブル崩壊はいよいよ本番」と断じる理由 - 「お金」大全 https://diamond.jp/articles/-/315618 澤上篤人 2023-01-09 05:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 防衛予算議論に欠けていた「3大課題」とは?軍事ビジネス“撤退ラッシュ”を止める処方箋 - 総予測2023 https://diamond.jp/articles/-/314559 大盤振る舞い 2023-01-09 05:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 元外資コンサルが実践する「コスパが高い」独学の技法、参考書の使い倒し方とは - 仕事に効く!独学バイブル https://diamond.jp/articles/-/315356 元外資コンサルが実践する「コスパが高い」独学の技法、参考書の使い倒し方とは仕事に効く独学バイブル現代は既存のビジネススキルがにわかに陳腐化し、すぐに新たなスキル習得を求められる大激変期です。 2023-01-09 05:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 東大・京大に一番入りやすかった時期は?【国公立49大学】偏差値40年間の早見表 - 183大学1225学部 偏差値40年の歴史 https://diamond.jp/articles/-/315642 東大・京大に一番入りやすかった時期は【国公立大学】偏差値年間の早見表大学学部偏差値年の歴史各大学の偏差値に対する“記憶や“印象は、各世代で異なる。 2023-01-09 05:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 小学生でも解ける東大入試問題【数学】「二等辺三角形」の定義を説明できる? - ニュース3面鏡 https://diamond.jp/articles/-/315047 2023-01-09 05:05:00
ビジネス 東洋経済オンライン ライオン、高単価の「新感覚」柔軟剤で反撃なるか 日々の洗濯体験を「前向きな習慣に変える」 | 専門店・ブランド・消費財 | 東洋経済オンライン https://toyokeizai.net/articles/-/644442?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-01-09 05:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)